]> granicus.if.org Git - libexpat/commitdiff
Test converted start of name with unknown encoding
authorRhodri James <rhodri@kynesim.co.uk>
Thu, 8 Jun 2017 18:20:56 +0000 (19:20 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 22 Jul 2017 20:49:17 +0000 (22:49 +0200)
expat/tests/runtests.c

index a00c5cf1068ac6512ae0f654e81b5e5d07733807..d56be2dd0bec2debc25f325f5405f39d25f4bbc0 100644 (file)
@@ -5358,7 +5358,8 @@ START_TEST(test_unknown_encoding_success)
 {
     const char *text =
         "<?xml version='1.0' encoding='experimental'?>\n"
-        "<d\x80oc>Hello, world</d\x80oc>";
+        /* Equivalent to <eoc>Hello, world</eoc> */
+        "<\x81\x64\x80oc>Hello, world</\x81\x64\x80oc>";
 
     XML_SetUnknownEncodingHandler(parser, BadEncodingHandler,
                                   (void *)PREFIX_CONVERTER);