summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-05 07:08:49 (GMT)
committerGitHub <noreply@github.com>2017-05-05 07:08:49 (GMT)
commit76a3e51a403bc84ed536921866c86dd7d07aaa7e (patch)
tree0cfc6ca2cd2da36730d15d6b9c5d7ffaac955abd /Misc
parent898ff03e1e7925ecde3da66327d3cdc7e07625ba (diff)
downloadcpython-76a3e51a403bc84ed536921866c86dd7d07aaa7e.zip
cpython-76a3e51a403bc84ed536921866c86dd7d07aaa7e.tar.gz
cpython-76a3e51a403bc84ed536921866c86dd7d07aaa7e.tar.bz2
bpo-30243: Fixed the possibility of a crash in _json. (#1420)
It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.
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 f2c1994..4500021 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -317,6 +317,10 @@ Extension Modules
Library
-------
+- bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
+ Misusing them could cause memory leaks or crashes. Now scanner and encoder
+ objects are completely initialized in the __new__ methods.
+
- bpo-30215: Compiled regular expression objects with the re.LOCALE flag no
longer depend on the locale at compile time. Only the locale at matching
time affects the result of matching.