]> Savannah Git Hosting - gnulib.git/commit
iconv_open: Fix undefined behaviour.
authorBruno Haible <bruno@clisp.org>
Sat, 5 Oct 2024 00:45:49 +0000 (02:45 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Oct 2024 11:46:02 +0000 (13:46 +0200)
commite33e6f5414d0f903817afcad18493c1350b631d7
tree1f1b619798bdf33737c6e50269bcc880e67e7307
parent0a01f6737dc5666c730bdfe6a038da53a4156cc2
iconv_open: Fix undefined behaviour.

Reported by Tim Sweet <tsweet64@protonmail.com>
at <https://savannah.gnu.org/bugs/?66289>.

* lib/iconv.c (utf32be_mbtowc, utf32le_mbtowc): Cast 'unsigned char'
values to ucs4_t before shifting them to the left.
ChangeLog
lib/iconv.c