From: Rhodri James Date: Fri, 10 Mar 2017 15:56:49 +0000 (+0000) Subject: Extend PE allocation test with long entity name X-Git-Tag: R_2_2_3~22^2~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a1f46a87d2d844f5c2e83429cd919b751e3201a;p=libexpat Extend PE allocation test with long entity name --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 3c0791e2..ce5330ee 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -5811,7 +5811,25 @@ external_entity_public(XML_Parser parser, const char *text1 = "\n" "\n" - "\n" + "\n" "%e1;\n"; const char *text2 = ""; const char *text; @@ -5846,9 +5864,10 @@ START_TEST(test_alloc_public_entity_value) /* Repeat certain counts to defeat cached allocations */ if ((i == 2 && repeat < 2) || (i == 3 && repeat == 2) || - (i == 9 && repeat == 3) || - (i == 18 && repeat == 4) || - (i == 19 && repeat == 5)) { + (i == 8 && repeat == 3) || + (i == 9 && repeat == 4) || + (i == 18 && repeat == 5) || + (i == 19 && repeat == 6)) { i--; repeat++; }