]> granicus.if.org Git - libexpat/commitdiff
Test multi-byte characters in ATTLIST default attribute value
authorRhodri James <rhodri@kynesim.co.uk>
Fri, 16 Jun 2017 17:24:49 +0000 (18:24 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 22 Jul 2017 20:49:20 +0000 (22:49 +0200)
expat/tests/runtests.c

index 24395fd58f266142d55c9fce2fe085e407132448..f0372c52139122ba3a2b20dbf0ad2fafe547934a 100644 (file)
@@ -1927,6 +1927,16 @@ START_TEST(test_dtd_attr_handling)
             "bar",
             XML_FALSE
         },
+        {
+            "<!ATTLIST doc a CDATA '\xdb\xb2'>\n"
+            "]>"
+            "<doc/>",
+            "doc",
+            "a",
+            "CDATA",
+            "\xdb\xb2",
+            XML_FALSE
+        },
         { NULL, NULL, NULL, NULL, NULL, XML_FALSE }
     };
     AttTest *test;