diff options
author | Rhodri James <rhodri@kynesim.co.uk> | 2017-07-27 14:09:07 +0100 |
---|---|---|
committer | Rhodri James <rhodri@kynesim.co.uk> | 2017-07-27 14:09:07 +0100 |
commit | 2c15ac7594a8a0aa12cc632016cda083e2dda367 (patch) | |
tree | ecc35922ee09c08a52bbd8c116c121e0f870e741 /expat/tests/runtests.c | |
parent | 8311f7ad7a4a070551e692c334ae5714ca8a1d84 (diff) | |
download | libexpat-git-2c15ac7594a8a0aa12cc632016cda083e2dda367.tar.gz |
Make test_alloc_realloc_long_attribute_value() robust vs allocations
Diffstat (limited to 'expat/tests/runtests.c')
-rw-r--r-- | expat/tests/runtests.c | 4 |
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"); |