]> granicus.if.org Git - libexpat/commitdiff
Make final reallocation test safe
authorRhodri James <rhodri@kynesim.co.uk>
Fri, 10 Feb 2017 16:37:22 +0000 (16:37 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 16 Jul 2017 21:02:30 +0000 (23:02 +0200)
expat/tests/runtests.c

index c143267c7ee72f3285206de0e9ccdb6afeef21d9..be77e62331387e380f6b0da0da93ba3c781ab98b 100644 (file)
@@ -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)