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

index d0641885a0c63d3d9ae2a0af6c7f0ffbe8c35f88..b88641242d25e0001bfb555def0f8d7bed04e66e 100644 (file)
@@ -9154,7 +9154,9 @@ START_TEST(test_alloc_realloc_default_attribute)
         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");