]> git.ipfire.org Git - thirdparty/glibc.git/commit
gconv: Correct Big5-HKSCS conversion to preserve all state bits. [BZ #25744]
authorTom Honermann <tom@honermann.net>
Thu, 30 Jun 2022 12:52:13 +0000 (08:52 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 6 Jul 2022 12:27:13 +0000 (09:27 -0300)
commit598f790fb17bcfff7fedde5209933a82d7748328
tree23347c46b9f5180c919502b122cb23da57759c17
parent3c9980698988ef64072f1fac339b180f52792faf
gconv: Correct Big5-HKSCS conversion to preserve all state bits. [BZ #25744]

This patch corrects the Big5-HKSCS converter to preserve the lowest 3 bits of
the mbstate_t __count data member when the converter encounters an incomplete
multibyte character.

This fixes BZ #25744.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
iconvdata/big5hkscs.c
iconvdata/tst-iconv-big5-hkscs-to-2ucs4.c