[issue24011] Add error checks to PyInit_signal()

Christian Heimes report at bugs.python.org
Sun Apr 19 21:28:15 CEST 2015


New submission from Christian Heimes:

The init function of the signal module fails to check for errors in a couple of places. The patch replaces PyDict_SetItemString() calls with PyModule_AddIntMacro() and error checks. An exception is unlikely so I'm OK when the patch just lands in 3.4 and 3.5.

CID 1295026 (#41 of 41): Dereference null return value (NULL_RETURNS)
dereference: Dereferencing a pointer that might be null x when calling PyDict_SetItemString

----------
components: Extension Modules
files: signalmodule.patch
keywords: patch
messages: 241551
nosy: christian.heimes
priority: normal
severity: normal
stage: patch review
status: open
title: Add error checks to PyInit_signal()
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file39127/signalmodule.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24011>
_______________________________________


More information about the Python-bugs-list mailing list