]> 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>
Sat, 5 Oct 2024 00:45:49 +0000 (02:45 +0200)
commite44763ddcb12fd04ed0290c3eb8c27e959cd98f1
tree4712b85768756eeafcf14f83eb944f2c27f808d6
parent4e1edf9c01e83a64bc33511f0496b59ddba00600
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