]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Nov 2018 21:49:59 +0000 (13:49 -0800)
committerGitHub <noreply@github.com>
Tue, 13 Nov 2018 21:49:59 +0000 (13:49 -0800)
commitfdc485a5dff8508328b4f26265d0af1ba5004597
treebbd5bb58e179787b0a6d8253c7a4196c543987bf
parentae8878176d6dc1878d1e792ac4308ca1920b103b
bpo-35214: Fix OOB memory access in unicode escape parser (GH-10506)

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>
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