| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Backport to 3.15 and 3.14.
|
Thanks @jelle-openai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
|
GH-160091 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-160092 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
…GH-159991) (#160092) (cherry picked from commit 69160f2) Co-authored-by: Jelle Zijlstra <jelle@openai.com>
…GH-159991) (#160091) (cherry picked from commit 69160f2) Co-authored-by: Jelle Zijlstra <jelle@openai.com>
| Back | FazBrowse Home | New Git URL |
Account for NUL terminators in fallback getnameinfo. On systems without a native getnameinfo(), the fallback checks whether a host or service string fits but does not reserve space for the terminating NUL written by strcpy. If the string length exactly equals the output buffer capacity, the terminator is written one byte past the end, potentially corrupting adjacent memory. Reject equal lengths as well as longer strings.
Backport to 3.15 and 3.14.