Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where next_url could return garbage #724

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

mstovenour
Copy link
Contributor

next_req_url, which is a zero terminated string, is not initialized when initially allocated. Later code correctly zero terminates this string 99% of the time but fails to do so if there are no Record-Route or Contact headers. Subsequent use of [next_url] will return garbage, best case.

Copy link
Member

@wdoekes wdoekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brr.. how that next_req_url is allocated does not win any prizes.

But you're not making it worse 👍

Thanks!

@wdoekes wdoekes merged commit ff62f70 into SIPp:master Apr 22, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants