glibc/iconv
Michael Colavita 1e40391de2 iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923)
Previously, in UCS4 conversion routines we limit the number of
characters we examine to the minimum of the number of characters in the
input and the number of characters in the output. This is not the
correct behavior when __GCONV_IGNORE_ERRORS is set, as we do not consume
an output character when we skip a code unit. Instead, track the input
and output pointers and terminate the loop when either reaches its
limit.

This resolves assertion failures when resetting the input buffer in a step of
iconv, which assumes that the input will be fully consumed given sufficient
output space.

(cherry picked from commit 228edd356f)
2021-01-03 13:20:30 +01:00
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_cache.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_charset.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00
gconv_charset.h intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00
gconv_close.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_conf.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_db.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_dl.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv_int.h intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00
gconv_open.c Rewrite iconv option parsing [BZ #19519] 2020-08-03 23:34:44 +02:00
gconv_simple.c iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) 2021-01-03 13:20:30 +01:00
gconv_trans.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gconv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconv_close.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconv_open.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00
iconv_prog.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00
iconv_prog.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
iconvconfig.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
loop.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) 2021-01-03 13:20:30 +01:00
skeleton.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtab.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-gconv-modules Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv3.c Convert tst-iconv3 to use test-skeleton. 2015-02-25 16:01:13 -08:00
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv7.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv8.c iconv: Fix incorrect UCS4 inner loop bounds (BZ#26923) 2021-01-03 13:20:30 +01:00
tst-iconv_prog.sh iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-30 23:59:53 +01:00
tst-iconv-mt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-iconv-opt.c Rewrite iconv option parsing [BZ #19519] 2020-08-03 23:34:44 +02:00
Versions intl: Handle translation output codesets with suffixes [BZ #26383] 2020-10-10 14:51:27 +02:00