glibc/iconv
Stefan Liebler 8f25676c83 Fix ucs4le_internal_loop in error case. [BZ #19726]
When converting from UCS4LE to INTERNAL, the input-value is checked for a too
large value and the iconv() call sets errno to EILSEQ. In this case the inbuf
argument of the iconv() call should point to the invalid character, but it
points to the beginning of the inbuf.
Thus this patch updates the pointers inptrp and outptrp before returning in
this error case.

This patch also adds a new testcase for this issue.
The new test was tested on a s390, power, intel machine.

ChangeLog:

	[BZ #19726]
	* iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
	outptrp in case of an illegal input.
	* iconv/tst-iconv6.c: New file.
	* iconv/Makefile (tests): Add tst-iconv6.
2016-05-25 17:18:06 +02:00
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_builtin.h Fix min/max needed for ascii to INTERNAL conversion 2016-03-07 17:47:50 +01:00
gconv_cache.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_charset.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_close.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_conf.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_db.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_dl.c Fix build failures with -DDEBUG. 2016-01-15 11:07:41 -07:00
gconv_int.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_open.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv_simple.c Fix ucs4le_internal_loop in error case. [BZ #19726] 2016-05-25 17:18:06 +02:00
gconv_trans.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
gconv.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv_close.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv_open.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
iconv_prog.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconv.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
iconvconfig.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
loop.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Makefile Fix ucs4le_internal_loop in error case. [BZ #19726] 2016-05-25 17:18:06 +02:00
skeleton.c Fix build errors with -DNDEBUG. 2016-01-15 10:44:07 -07:00
strtab.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +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. 2016-01-04 16:05:18 +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. 2016-01-04 16:05:18 +00:00
tst-iconv6.c Fix ucs4le_internal_loop in error case. [BZ #19726] 2016-05-25 17:18:06 +02:00
Versions Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00