[New-bugs-announce] [issue24010] Add error checks to PyInit__locale()

Christian Heimes report at bugs.python.org
Sun Apr 19 21:26:39 CEST 2015


New submission from Christian Heimes:

The init function of the locale 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 1295027 (#8 of 8): Dereference null return value (NULL_RETURNS)
dereference: Dereferencing a pointer that might be null x when calling PyDict_SetItemString

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

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


More information about the New-bugs-announce mailing list