Remove superfluous check again
authorFabian Keil <fk@fabiankeil.de>
Sun, 17 Jan 2016 18:54:16 +0000 (18:54 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 17 Jan 2016 18:54:16 +0000 (18:54 +0000)
As pointed out by Lee, it still caused a compiler warning
on Windows and AddressSanitizer seems to confirm that it's
not actually required to fix the crashes.

pcre/pcre.c

index 1e602df..38d0113 100644 (file)
@@ -3018,11 +3018,6 @@ while ((c = *(++ptr)) != 0)
         *errorptr = "internal error";
         goto PCRE_ERROR_RETURN;
         }
-      if ((int)ptr[1] >= tables_length - ctypes_offset)
-        {
-        *errorptr = ERR6;
-        goto PCRE_ERROR_RETURN;
-        }
       }
 
     /* This "while" is the end of the "do" above. */