]> granicus.if.org Git - python/commitdiff
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
authorChristian Heimes <christian@cheimes.de>
Mon, 1 Jul 2013 21:43:09 +0000 (23:43 +0200)
committerChristian Heimes <christian@cheimes.de>
Mon, 1 Jul 2013 21:43:09 +0000 (23:43 +0200)
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
 use_after_free: Using freed pointer tstate.

1  2 
Misc/NEWS
Python/pystate.c

diff --cc Misc/NEWS
index 6f0b54e7eed9326f1f60547aad9526320b56c87b,dd6d8d13c7162eaf2c925112685730baddfeaf62..ab75cd02fb0395d71867b62d087407f14547a420
+++ b/Misc/NEWS
@@@ -10,8 -12,9 +10,11 @@@ What's New in Python 3.4.0 Alpha 1
  Core and Builtins
  -----------------
  
+ - Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
+   tstate is first removed from TLS and then deallocated.
 +- Issue #13483: Use VirtualAlloc in obmalloc on Windows.
 +
  - Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
    OverflowError when an argument of %c format is out of range.
  
Simple merge