Test handling of right square bracket at end of content data

This commit is contained in:
Rhodri James 2017-02-15 13:50:04 +00:00 committed by Sebastian Pipping
parent fe2e255025
commit 8bdf2bc102

View 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"