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 <rep...@bugs.python.org> <http://bugs.python.org/issue24011> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com