]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35194: Fix a wrong constant in cp932 codec (GH-10420)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Nov 2018 07:35:05 +0000 (23:35 -0800)
committerGitHub <noreply@github.com>
Fri, 9 Nov 2018 07:35:05 +0000 (23:35 -0800)
commit22234f1375d28803074405497ea61315fb37240d
treeef5173f7c5f14bd425287a99d195d93429ed3f26
parentf16ebcd460aaeb8d6b31db317d22f5ed68afbcc8
bpo-35194: Fix a wrong constant in cp932 codec (GH-10420)

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.

https://bugs.python.org/issue35194
(cherry picked from commit 7a69cf47a9bbc95f95fd67c982bff121b2a903cb)

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