]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
stringMatch_wrk: reduce max recursion depth to 250 (paranoia)
authorJulian Seward <jseward@acm.org>
Thu, 16 May 2002 23:16:13 +0000 (23:16 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 16 May 2002 23:16:13 +0000 (23:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@281

coregrind/vg_mylibc.c
vg_mylibc.c

index a9d9537eb4aab568a3ddccf27339032c5a9860ac..8cb776ea12aca0798d2e43657ec6f18f3a138072 100644 (file)
@@ -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) {
index a9d9537eb4aab568a3ddccf27339032c5a9860ac..8cb776ea12aca0798d2e43657ec6f18f3a138072 100644 (file)
@@ -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) {