diff options
author | Rhodri James <rhodri@kynesim.co.uk> | 2017-07-27 14:21:58 +0100 |
---|---|---|
committer | Rhodri James <rhodri@kynesim.co.uk> | 2017-07-27 14:21:58 +0100 |
commit | a879906c08ff659435d42f84519e5ef42bc4819c (patch) | |
tree | 43f289f1677000b0bd82012bd8ce63c69aafbe9a | |
parent | 39bba875efd7c1b4a722b86fa65063dae07fd9af (diff) | |
download | libexpat-git-a879906c08ff659435d42f84519e5ef42bc4819c.tar.gz |
Make test_alloc_realloc_param_entity_newline() robust vs allocations
-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 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"); |