From: Rhodri James Date: Thu, 27 Jul 2017 12:30:42 +0000 (+0100) Subject: Make test_alloc_realloc_subst_public_entity_value() robust vs allocation X-Git-Tag: R_2_2_3~16^2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f82f7bf613267ab96e9beecbdb0c6c7cb7079d6e;p=libexpat Make test_alloc_realloc_subst_public_entity_value() robust vs allocation --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 980d5717..64da4c9c 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -8805,7 +8805,9 @@ START_TEST(test_alloc_realloc_subst_public_entity_value) if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_alloc_parse_xdecl() */ + alloc_teardown(); + alloc_setup(); } if (i == 0) fail("Parsing worked despite failing reallocation");