]> granicus.if.org Git - libexpat/commitdiff
Test handling of right square bracket at end of content data
authorRhodri James <rhodri@kynesim.co.uk>
Wed, 15 Feb 2017 13:50:04 +0000 (13:50 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 16 Jul 2017 16:41:23 +0000 (18:41 +0200)
expat/tests/runtests.c

index 6200b2441220297bb7b27875aed531740a6bacba..61e6f987b1f57db5105f0e675c3d60ed1af96074 100644 (file)
@@ -1747,7 +1747,7 @@ record_cdata_nodefault_handler(void *userData,
 /* Test XML_DefaultCurrent() passes handling on correctly */
 START_TEST(test_default_current)
 {
-    const char *text = "<doc>hello</doc>";
+    const char *text = "<doc>hell]</doc>";
     const char *entity_text =
         "<!DOCTYPE doc [\n"
         "<!ENTITY entity '&#37;'>\n"