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

index 82d39cc0b564b38cfdbf6c6b970d6f58beeb65d2..cf9b490b858f6b91c13b1f3f4a0cc1242b9de74d 100644 (file)
@@ -9488,7 +9488,9 @@ START_TEST(test_alloc_realloc_group_choice)
         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");