_ssl.c
does not handle errors on module creation
#111230
Labels
extension-modules
C modules in the Modules dir
topic-SSL
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
sslmodule_init_constants
does not return-1
when any ofPyModule_Add*
calls fail.For example,
PyModule_AddIntConstant
returns-1
on error, but it is never checked:cpython/Modules/_ssl.c
Lines 5790 to 5831 in 96cbd1e
Other ``sslmodule_init_*` functions do check for errors correctly.
I have a PR ready.
Linked PRs
_ssl.c
not checking for errors when initializing a module #111232The text was updated successfully, but these errors were encountered: