From: Julian Seward Date: Thu, 16 May 2002 23:16:13 +0000 (+0000) Subject: stringMatch_wrk: reduce max recursion depth to 250 (paranoia) X-Git-Tag: svn/VALGRIND_1_0_3~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11ae12ffd7f902f67e8388aa50997ec54f8f3cae;p=thirdparty%2Fvalgrind.git stringMatch_wrk: reduce max recursion depth to 250 (paranoia) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@281 --- diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index a9d9537eb4..8cb776ea12 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c @@ -854,7 +854,7 @@ static Int recDepth; static Bool stringMatch_wrk ( Char* pat, Char* str ) { - vg_assert(recDepth >= 0 && recDepth < 500); + vg_assert(recDepth >= 0 && recDepth < 250); recDepth++; for (;;) { switch (*pat) { diff --git a/vg_mylibc.c b/vg_mylibc.c index a9d9537eb4..8cb776ea12 100644 --- a/vg_mylibc.c +++ b/vg_mylibc.c @@ -854,7 +854,7 @@ static Int recDepth; static Bool stringMatch_wrk ( Char* pat, Char* str ) { - vg_assert(recDepth >= 0 && recDepth < 500); + vg_assert(recDepth >= 0 && recDepth < 250); recDepth++; for (;;) { switch (*pat) {