Skip to content

gh-146245: Fix reference and buffer leaks via audit hook in socket module#146248

Merged
serhiy-storchaka merged 7 commits intopython:mainfrom
aisk:socket-audit-leak
Mar 22, 2026
Merged

gh-146245: Fix reference and buffer leaks via audit hook in socket module#146248
serhiy-storchaka merged 7 commits intopython:mainfrom
aisk:socket-audit-leak

Conversation

@aisk
Copy link
Member

@aisk aisk commented Mar 21, 2026

@aisk aisk changed the title gh-146245: Fix reference and buffer leaks audit hook in socket module gh-146245: Fix reference and buffer leaks via audit hook in socket module Mar 21, 2026
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

The fix LGTM. I am not sure that it is worth to add such complicated and costly test. There is no precedence.

@aisk
Copy link
Member Author

aisk commented Mar 21, 2026

The fix LGTM. I am not sure that it is worth to add such complicated and costly test. There is no precedence.

The tests are reverted.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes and removed awaiting merge labels Mar 22, 2026
@serhiy-storchaka serhiy-storchaka merged commit c30fae4 into python:main Mar 22, 2026
94 of 102 checks passed
@miss-islington-app
Copy link

Thanks @aisk for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 22, 2026
…ket module (pythonGH-146248)

(cherry picked from commit c30fae4bea9f9ba07833e97eb542754c26610765)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 22, 2026
…ket module (pythonGH-146248)

(cherry picked from commit c30fae4)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 22, 2026

GH-146274 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Mar 22, 2026
@bedevere-app
Copy link

bedevere-app bot commented Mar 22, 2026

GH-146275 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 22, 2026
serhiy-storchaka pushed a commit that referenced this pull request Mar 22, 2026
…cket module (GH-146248) (GH-146275)

(cherry picked from commit c30fae4)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
serhiy-storchaka pushed a commit that referenced this pull request Mar 22, 2026
…cket module (GH-146248) (GH-146274)

(cherry picked from commit c30fae4)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
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