Missing error handling in SET_COUNT
macro in _testinternalcapi.c
#133891
Labels
3.14
bugs and security fixes
3.15
new features, bugs and security fixes
extension-modules
C modules in the Modules dir
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Refs #133265
Right here
PyLong_FromLong
can in theory (unlikely in practice) returnNULL
. It is missing this check. I understand that this is a test code, but I also don't see a reason why we should not be explicit about it.cpython/Modules/_testinternalcapi.c
Line 1045 in 13cb8ca
cc @ericsnowcurrently
I have a PR ready.
Linked PRs
SET_COUNT
macro in_testinternalcapi.c
#133892SET_COUNT
macro in_testinternalcapi.c
(GH-133892) #134988The text was updated successfully, but these errors were encountered: