summaryrefslogtreecommitdiff
path: root/expat
diff options
context:
space:
mode:
authorRhodri James <rhodri@kynesim.co.uk>2017-07-27 14:09:07 +0100
committerRhodri James <rhodri@kynesim.co.uk>2017-07-27 14:09:07 +0100
commit2c15ac7594a8a0aa12cc632016cda083e2dda367 (patch)
treeecc35922ee09c08a52bbd8c116c121e0f870e741 /expat
parent8311f7ad7a4a070551e692c334ae5714ca8a1d84 (diff)
downloadlibexpat-git-2c15ac7594a8a0aa12cc632016cda083e2dda367.tar.gz
Make test_alloc_realloc_long_attribute_value() robust vs allocations
Diffstat (limited to 'expat')
-rw-r--r--expat/tests/runtests.c4
1 files changed, 3 insertions, 1 deletions
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");