-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_testbuffer.c
's initialization does not handle errors
#114670
Labels
Comments
sobolevn
added
type-bug
An unexpected behavior, bug, or error
extension-modules
C modules in the Modules dir
labels
Jan 28, 2024
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Jan 28, 2024
sobolevn
added a commit
that referenced
this issue
Feb 10, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 11, 2024
…4672) (cherry picked from commit 3a5b38e) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 11, 2024
…4672) (cherry picked from commit 3a5b38e) Co-authored-by: Nikita Sobolev <[email protected]>
This was referenced Feb 11, 2024
sobolevn
added a commit
that referenced
this issue
Feb 11, 2024
…#115272) (cherry picked from commit 3a5b38e) Co-authored-by: Nikita Sobolev <[email protected]>
sobolevn
added a commit
that referenced
this issue
Feb 11, 2024
…#115271) (cherry picked from commit 3a5b38e) Co-authored-by: Nikita Sobolev <[email protected]>
Done! 🎉 |
fsc-eriker
pushed a commit
to fsc-eriker/cpython
that referenced
this issue
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
I found three problematic places:
cpython/Modules/_testbuffer.c
Lines 2841 to 2844 in a768e12
Here the first
AttributeError
can be swallowed by the second one.cpython/Modules/_testbuffer.c
Lines 2850 to 2879 in a768e12
Here
PyModule_AddIntMacro
can return an error. It is not checked.cpython/Modules/_testbuffer.c
Lines 2829 to 2835 in a768e12
PyModule_AddObject
can also return an error.I have a PR ready.
Linked PRs
_testbuffer
module initialization #114672_testbuffer
module initialization (GH-114672) #115271_testbuffer
module initialization (GH-114672) #115272The text was updated successfully, but these errors were encountered: