]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #27587: Move null pointer check earlier in _PyState_AddModule()
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 22 Aug 2016 15:05:56 +0000 (18:05 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 22 Aug 2016 15:05:56 +0000 (18:05 +0300)
commit4b7b565c581f8f418df6e661ebf7d906794e7142
tree781a57310d7398b26e91bf46109bd02cb1a049fb
parent844796530a21f2a8689f2b9e01035d4a64a95275
Issue #27587: Move null pointer check earlier in _PyState_AddModule()

This was found by PVS-Studio:

V595 The 'def' pointer was utilized before it was verified
against nullptr. Check lines: 286, 292. pystate.c 286

Initial patch by Christian Heimes.
Misc/NEWS
Python/pystate.c