]> 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 12:03:25 +0000 (14:03 +0200)
commit8de045a6e084b34f2cb7e7508e989f747016ca77
tree05d3d0ed6f12ff5be781b350d78a026134dc22ad
parent1ce8b14f90a8e135f3260cc1f71d8b5f67432b3f
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