]> granicus.if.org Git - libexpat/commitdiff
Make test_alloc_realloc_ce_extends_pe() robust vs allocation changes
authorRhodri James <rhodri@kynesim.co.uk>
Thu, 27 Jul 2017 13:23:43 +0000 (14:23 +0100)
committerRhodri James <rhodri@kynesim.co.uk>
Thu, 27 Jul 2017 13:23:43 +0000 (14:23 +0100)
expat/tests/runtests.c

index 83f0169f28a9ce02446dd143f62f81980cdb12c2..c99045db1397e9ed4898e28448106be6b4461d55 100644 (file)
@@ -9875,7 +9875,9 @@ START_TEST(test_alloc_realloc_ce_extends_pe)
         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");