Test partial UTF-8 characters in IGNORE section

This commit is contained in:
Rhodri James 2017-02-27 17:58:29 +00:00 committed by Sebastian Pipping
parent 9948d7cdfc
commit e8ae6734bc

View File

@ -3561,6 +3561,13 @@ START_TEST(test_bad_ignore_section)
NULL,
XML_ERROR_INVALID_TOKEN
},
{
/* FIrst two bytes of a three-byte char */
"<![IGNORE[\xe2\x82",
"Partial XML character not faulted",
NULL,
XML_ERROR_PARTIAL_CHAR
},
{ NULL, NULL, NULL, XML_ERROR_NONE }
};
ExtFaults *fault;