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

make safe http_schemes.c #1705

Closed
wants to merge 1 commit into from
Closed

make safe http_schemes.c #1705

wants to merge 1 commit into from

Conversation

shikokuchuo
Copy link
Contributor

Fixes #1704 Rare segfault in nng_http_client_alloc()

Adds a guard for upper being NULL, and at the same time replaces strcmp() with the safer strncmp().

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

@shikokuchuo shikokuchuo closed this by deleting the head repository Nov 22, 2023
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.

Rare segfault in nng_http_client_alloc()
1 participant