From 9de593495c5b5b081dd26f6d30684fec86917353 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Thu, 2 Mar 2017 19:08:27 +0000 Subject: [PATCH] Test UTF-8 byte order mark in parameter entity value parsing --- expat/tests/runtests.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 98d6302b..2d6ea36b 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3755,6 +3755,13 @@ START_TEST(test_external_entity_values) NULL, XML_ERROR_XML_DECL }, + { + /* UTF-8 BOM */ + "\xEF\xBB\xBF", + NULL, + NULL, + XML_ERROR_NONE + }, { NULL, NULL, NULL, XML_ERROR_NONE } }; int i;