From e57d2413a1baaee650471021d681dd3fe509665b Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Fri, 3 Mar 2017 18:22:45 +0000 Subject: [PATCH] Test various errors in parameter entity values --- expat/tests/runtests.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 538a68a5..ba7b5b7b 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3785,6 +3785,24 @@ START_TEST(test_external_entity_values) NULL, XML_ERROR_NONE }, + { + "\n$", + "Invalid token after text declaration not faulted", + NULL, + XML_ERROR_INVALID_TOKEN + }, + { + "\n'wombat", + "Unterminated string after text decl not faulted", + NULL, + XML_ERROR_UNCLOSED_TOKEN + }, + { + "\n\xe2\x82", + "Partial UTF-8 character after text decl not faulted", + NULL, + XML_ERROR_PARTIAL_CHAR + }, { NULL, NULL, NULL, XML_ERROR_NONE } }; int i; -- 2.40.0