compile_data compile_block;
int brastack[BRASTACK_SIZE];
uschar bralenstack[BRASTACK_SIZE];
+const size_t pattern_length = strlen(pattern);
#ifdef DEBUG
uschar *code_base, *code_end;
/* Ordinary character or single-char escape */
runlength++;
+
+ if (ptr > pattern + pattern_length)
+ {
+ *errorptr = "internal error";
+ goto PCRE_ERROR_RETURN;
+ }
+ if (ptr[1] >= tables_length - ctypes_offset)
+ {
+ *errorptr = ERR6;
+ goto PCRE_ERROR_RETURN;
+ }
}
/* This "while" is the end of the "do" above. */