]> 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:33:10 +0000 (23:33 -0800)
committerGitHub <noreply@github.com>
Fri, 9 Nov 2018 07:33:10 +0000 (23:33 -0800)
commit49ee41f1c3934aa095e32fa751cdf3ba641ae34b
tree255b1e208e842884b6403d2344f428abfd7619f0
parent65e1a1fd311943866361fcb288c0df65dadbe092
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