[PATCH 14/14] Fix UTF-16 surrogate handling.

Stefan Liebler stli@linux.vnet.ibm.com
Tue Mar 22 14:39:00 GMT 2016


On 03/18/2016 02:04 PM, Stefan Liebler wrote:
> Is the previously attached test-case okay?

Hi,
here is one further update regarding the new test "iconv/tst-iconv7.c".
If "make check" is executed directly after building without the 
installation step, then <build-dir>/iconvdata/gconv-modules hasn't been 
generated yet and the system gconv-modules-file/iconv-modules are used 
instead - if available.
The test needs gconv-modules and the UTF-16|32 modules as prerequirement.
Thus I've moved it to iconvdata/bug-iconv12.c and added
the prerequirements in iconvdata/Makefile.

Ok, to commit?

ChangeLog:

	[BZ #19727]
	* iconvdata/utf-16.c (BODY):
	Report an error if first word is not a
	valid high surrogate.
	* iconvdata/utf-32.c (BODY):
	Report an error if the value is in range
	of an utf16 surrogate.
	* iconv/gconv_simple.c (BODY): Likewise.
	* iconvdata/bug-iconv12.c: New file.
	* iconvdata/Makefile (tests): Add bug-iconv12.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Fix-UTF-16-surrogate-handling.-BZ-19727.patch
Type: text/x-patch
Size: 15676 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160322/47f12047/attachment.bin>


More information about the Libc-alpha mailing list