summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-08-22 15:05:56 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-08-22 15:05:56 (GMT)
commit4b7b565c581f8f418df6e661ebf7d906794e7142 (patch)
tree781a57310d7398b26e91bf46109bd02cb1a049fb /Misc
parent844796530a21f2a8689f2b9e01035d4a64a95275 (diff)
downloadcpython-4b7b565c581f8f418df6e661ebf7d906794e7142.zip
cpython-4b7b565c581f8f418df6e661ebf7d906794e7142.tar.gz
cpython-4b7b565c581f8f418df6e661ebf7d906794e7142.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7530624..730ed96 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,10 @@ Release date: TBA
Core and Builtins
-----------------
+- Issue #27587: Fix another issue found by PVS-Studio: Null pointer check
+ after use of 'def' in _PyState_AddModule().
+ Initial patch by Christian Heimes.
+
- Issue #27782: Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions to instances
of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.