mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Test parameter entity marked SYSTEM but with no ID
This commit is contained in:
parent
7d4bb8631d
commit
9940f71578
1 changed files with 13 additions and 0 deletions
|
@ -6767,6 +6767,18 @@ START_TEST(test_bad_entity_3)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_bad_entity_4)
|
||||
{
|
||||
const char *text =
|
||||
"<!DOCTYPE doc [\n"
|
||||
" <!ENTITY % foo SYSTEM>\n"
|
||||
"]>\n"
|
||||
"<doc/>";
|
||||
expect_failure(text, XML_ERROR_SYNTAX,
|
||||
"Parameter ENTITY without Public ID is not rejected");
|
||||
}
|
||||
END_TEST
|
||||
|
||||
/*
|
||||
* Namespaces tests.
|
||||
*/
|
||||
|
@ -12257,6 +12269,7 @@ make_suite(void)
|
|||
tcase_add_test(tc_basic, test_bad_entity);
|
||||
tcase_add_test(tc_basic, test_bad_entity_2);
|
||||
tcase_add_test(tc_basic, test_bad_entity_3);
|
||||
tcase_add_test(tc_basic, test_bad_entity_4);
|
||||
|
||||
suite_add_tcase(s, tc_namespace);
|
||||
tcase_add_checked_fixture(tc_namespace,
|
||||
|
|
Loading…
Add table
Reference in a new issue