diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-05 07:08:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 07:08:49 (GMT) |
commit | 76a3e51a403bc84ed536921866c86dd7d07aaa7e (patch) | |
tree | 0cfc6ca2cd2da36730d15d6b9c5d7ffaac955abd /Misc | |
parent | 898ff03e1e7925ecde3da66327d3cdc7e07625ba (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |