From: Rhodri James Date: Fri, 10 Feb 2017 16:37:22 +0000 (+0000) Subject: Make final reallocation test safe X-Git-Tag: R_2_2_3~27^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec9364856323c34b4dce480dfba21738aca9046b;p=libexpat Make final reallocation test safe --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index c143267c..be77e623 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -4917,6 +4917,7 @@ START_TEST(test_alloc_realloc_buffer) break; XML_ParserReset(parser, NULL); } + reallocation_count = -1; if (i == 0) fail("Parse succeeded with no reallocation"); else if (i == 10)