]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) (GH-10522)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Nov 2018 00:39:36 +0000 (16:39 -0800)
committerGitHub <noreply@github.com>
Wed, 14 Nov 2018 00:39:36 +0000 (16:39 -0800)
commit9fbcb1402efab4e287f25145a69ba14c9c6dbce9
tree6d38028a96dcc976f1574d4ffb67e09cad4e4eb4
parentc30830bbb2630605b9b7915af7e82c8124e705c2
[3.7] bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506) (GH-10522)

Discovered using clang's MemorySanitizer when it ran python3's
test_fstring test_misformed_unicode_character_name.

An msan build will fail by simply executing: ./python -c 'u"\N"'
(cherry picked from commit 746b2d35ea47005054ed774fecaed64fab803d7d)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
https://bugs.python.org/issue35214
Misc/NEWS.d/next/Core and Builtins/2018-11-13-00-40-35.bpo-35214.OQBjph.rst [new file with mode: 0644]
Objects/unicodeobject.c