FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-159739: Propagate fallback getaddrinfo allocation failures (GH-159984) by miss-islington · Pull Request #160099 · python/cpython · GitHub

Repository navigation

[3.15] gh-159739: Propagate fallback getaddrinfo allocation failures (GH-159984) - #160099

Merged
JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-7c39e8f-3.15
Oct 22, 2026
Merged

JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-7c39e8f-3.15

Conversation

miss-islington commented Oct 21, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

On builds using CPython's fallback getaddrinfo(), an allocation failure while constructing address results can return success with a null result, and the canonical-name path can ignore a helper error. socket.getaddrinfo() can then return an empty list, other callers can crash when they dereference the null result, and partially built address lists may leak. Set EAI_MEMORY, propagate helper errors, and keep the partial list available for cleanup.
(cherry picked from commit 7c39e8f)

Co-authored-by: Jelle Zijlstra jelle@openai.com

…ythonGH-159984)

On builds using CPython's fallback `getaddrinfo()`, an allocation failure while constructing address results can return success with a null result, and the canonical-name path can ignore a helper error. `socket.getaddrinfo()` can then return an empty list, other callers can crash when they dereference the null result, and partially built address lists may leak. Set `EAI_MEMORY`, propagate helper errors, and keep the partial list available for cleanup.
(cherry picked from commit 7c39e8f)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
JelleZijlstra merged commit 18dd3f0 into python:3.15 Oct 22, 2026
56 checks passed
miss-islington deleted the backport-7c39e8f-3.15 branch October 22, 2026 14:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL