gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadline#140910
gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadline#140910vstinner merged 19 commits intopython:mainfrom
PyOS_StdioReadline#140910Conversation
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be poked with soft cushions! |
PyOS_StdioReadline
|
FTR, a buffer underflow is something entirely different. |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
Misc/NEWS.d/next/Security/2025-11-02-16-23-17.gh-issue-140594.YIWUpl.rst
Outdated
Show resolved
Hide resolved
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again |
picnixz
left a comment
There was a problem hiding this comment.
Using Popen seems an overkill.
Misc/NEWS.d/next/Security/2025-11-02-16-23-17.gh-issue-140594.YIWUpl.rst
Outdated
Show resolved
Hide resolved
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
Misc/NEWS.d/next/Core_and_Builtins/2025-11-02-16-23-17.gh-issue-140594.YIWUpl.rst
Outdated
Show resolved
Hide resolved
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
@picnixz reviews have been addressed.
|
Aha, I reproduced the ASAN error using Using the ASAN build without the fix, the new test fails as expected: Using the ASAN build with the fix, the new test pass as expected. |
…yOS_StdioReadline() (pythonGH-140910) (cherry picked from commit 86a0756) Co-authored-by: Shamil <ashm.tech@proton.me> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
…yOS_StdioReadline() (pythonGH-140910) (cherry picked from commit 86a0756) Co-authored-by: Shamil <ashm.tech@proton.me> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-145852 is a backport of this pull request to the 3.14 branch. |
|
GH-145853 is a backport of this pull request to the 3.13 branch. |
PyOS_StdioReadlinePyOS_StdioReadline
|
Thanks @ashm-dev for the fix, I merged your PR and backported the fix to 3.13 and 3.14 branches. |
Uh oh!
There was an error while loading. Please reload this page.