glibc/iconv
Arjun Shankar 9a99c68214 iconv: Accept redundant shift sequences in IBM1364 [BZ #26224]
The IBM1364, IBM1371, IBM1388, IBM1390 and IBM1399 character sets
share converter logic (iconvdata/ibm1364.c) which would reject
redundant shift sequences when processing input in these character
sets.  This led to a hang in the iconv program (CVE-2020-27618).

This commit adjusts the converter to ignore redundant shift sequences
and adds test cases for iconv_prog hangs that would be triggered upon
their rejection.  This brings the implementation in line with other
converters that also ignore redundant shift sequences (e.g. IBM930
etc., fixed in commit 692de4b396).

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2020-11-04 12:19:38 +01:00
..
dummy-repertoire.c
gconv_builtin.c
gconv_builtin.h
gconv_cache.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
gconv_charset.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
gconv_charset.h intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
gconv_close.c
gconv_conf.c
gconv_db.c
gconv_dl.c
gconv_int.h intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
gconv_open.c
gconv_simple.c
gconv_trans.c
gconv.c
gconv.h
iconv_charmap.c
iconv_close.c
iconv_open.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
iconv_prog.c intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00
iconv_prog.h
iconv.c
iconv.h
iconvconfig.c
iconvconfig.h
loop.c
Makefile
skeleton.c
strtab.c
test-gconv-modules
tst-gconv-init-failure-mod.c
tst-gconv-init-failure.c
tst-iconv1.c
tst-iconv2.c
tst-iconv3.c
tst-iconv4.c
tst-iconv5.c
tst-iconv6.c
tst-iconv7.c
tst-iconv_prog.sh iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-04 12:19:38 +01:00
tst-iconv-mt.c
tst-iconv-opt.c
Versions intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00