From a879906c08ff659435d42f84519e5ef42bc4819c Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Thu, 27 Jul 2017 14:21:58 +0100 Subject: [PATCH] Make test_alloc_realloc_param_entity_newline() robust vs allocations --- expat/tests/runtests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.50.0