[issue24347] unchecked return value in C OrderedDict

Eric Snow report at bugs.python.org
Tue Jun 2 03:08:20 CEST 2015


Eric Snow added the comment:

Using PyDict_GetItemWithError() is a good idea.  Also, raising KeyError when the value is NULL (and no errors set) eliminates the crash.  Here's a patch that fixes the problem.  Unless there are any objections, I'll commit it in a couple hours.

----------
stage: test needed -> patch review
Added file: http://bugs.python.org/file39591/issue24347.dif

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


More information about the Python-bugs-list mailing list