Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-100795: Don't call freeaddrinfo on failure. (GH-101252)#101272

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedJan 23, 2023
edited by arhadthedev
Loading

When getaddrinfo returns an error, the output pointer is in an unknown state
Don't call freeaddrinfo on it. See the issue for discussion and details with
links to reasoning.Most libc getaddrinfo implementations never modify the
output pointer unless they are returning success.

(cherry picked from commitb724ac2)

Co-authored-by: Gregory P. Smithgreg@krypto.org
Co-authored-by: Sergey G. Brestergithub@sebres.de
Co-authored-by: Oleg Iaryginoleg@arhadthedev.net

When getaddrinfo returns an error, the output pointer is in an unknown stateDon't call freeaddrinfo on it.  See the issue for discussion and details withlinks to reasoning.  _Most_ libc getaddrinfo implementations never modify theoutput pointer unless they are returning success.(cherry picked from commitb724ac2)Co-authored-by: Gregory P. Smith <greg@krypto.org>Co-authored-by: Sergey G. Brester <github@sebres.de>Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
@miss-islingtonmiss-islington merged commit5964b12 intopython:3.11Jan 23, 2023
@miss-islingtonmiss-islington deleted the backport-b724ac2-3.11 branchJanuary 23, 2023 23:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gpsheadgpsheadgpshead approved these changes

Assignees

No one assigned

Labels

type-bugAn unexpected behavior, bug, or error

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@gpshead@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp