]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-35194: Fix a wrong constant in cp932 codec. (GH-10420) (GH-10433)
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sat, 10 Nov 2018 05:47:12 +0000 (08:47 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 10 Nov 2018 05:47:12 +0000 (07:47 +0200)
commit0d165262d949440e5aea6533b10e19e4cd5cf12d
tree6de06d25047bccf6f02a0a1a173e8eadac86dfe9
parent18ba4851aeb5dc5d6b4d22adc8d0555d0c2fdfe5
[2.7] bpo-35194: Fix a wrong constant in cp932 codec. (GH-10420) (GH-10433)

This typo doesn't affect the result because wrong bits are discarded
on implicit conversion to unsigned char, but it trips UBSan
with -fsanitize=implicit-integer-truncation.
(cherry picked from commit 7a69cf47a9bbc95f95fd67c982bff121b2a903cb)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Modules/cjkcodecs/_codecs_jp.c