Closed
Description
Bug report
Refs #133265
Right here PyLong_FromLong
can in theory (unlikely in practice) return NULL
. 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
I have a PR ready.
Activity
pythongh-133891: Add missing error check to `SET_COUNT` macro in `_te…
SET_COUNT
macro in_testinternalcapi.c
#133892[-]Missing error handling in[/-][+]Missing error handling in `SET_COUNT` macro in `_testinternalcapi.c`[/+]gh-133891: Add missing error check to `SET_COUNT` macro in `_testinte…
pythongh-133891: Add missing error check to `SET_COUNT` macro in `_te…
SET_COUNT
macro in_testinternalcapi.c
(GH-133892) #134988[3.14] gh-133891: Add missing error check to `SET_COUNT` macro in `_t…