From: Rhodri James Date: Thu, 27 Jul 2017 13:21:58 +0000 (+0100) Subject: Make test_alloc_realloc_param_entity_newline() robust vs allocations X-Git-Tag: R_2_2_3~16^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a879906c08ff659435d42f84519e5ef42bc4819c;p=libexpat Make test_alloc_realloc_param_entity_newline() robust vs allocations --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 7516804c..83f0169f 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -9826,7 +9826,9 @@ START_TEST(test_alloc_realloc_param_entity_newline) 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("Parse succeeded despite failing reallocator");