From ec167d305c60e8b03cd94dde1b195a0954163be2 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Wed, 3 May 2017 16:35:30 +0100 Subject: [PATCH] Test longer context URI with a failing reallocator --- expat/tests/runtests.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 817cd42a..2b6abac5 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -9366,6 +9366,38 @@ START_TEST(test_nsalloc_realloc_long_context_6) } END_TEST +START_TEST(test_nsalloc_realloc_long_context_7) +{ + const char *text = + "\n" + "]>\n" + "\n" + "&en;" + ""; + + context_realloc_test(parser, text); +} +END_TEST + START_TEST(test_nsalloc_realloc_long_ge_name) { const char *text = @@ -9816,6 +9848,7 @@ make_suite(void) tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_context_4); tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_context_5); tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_context_6); + tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_context_7); tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_ge_name); tcase_add_test(tc_nsalloc, test_nsalloc_realloc_long_context_in_dtd);