From: Rhodri James Date: Thu, 27 Jul 2017 13:09:07 +0000 (+0100) Subject: Make test_alloc_realloc_long_attribute_value() robust vs allocations X-Git-Tag: R_2_2_3~16^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c15ac7594a8a0aa12cc632016cda083e2dda367;p=libexpat Make test_alloc_realloc_long_attribute_value() robust vs allocations --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 34eb9c48..1d6eacb6 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -9591,7 +9591,9 @@ START_TEST(test_alloc_realloc_long_attribute_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("Parse succeeded despite failing reallocator");