X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcre%2Fpcre.c;h=1e602df4399fe39bc6c7d8e99bb77fb72fa4367c;hp=1297ed9954c07cbde6114de8928bb4397076c1dc;hb=777f23fd554b0811d16bc2323ced6fe9dc0cff72;hpb=63044b565becfd1590f500934036204960a4b8e6 diff --git a/pcre/pcre.c b/pcre/pcre.c index 1297ed99..1e602df4 100644 --- a/pcre/pcre.c +++ b/pcre/pcre.c @@ -3013,12 +3013,12 @@ while ((c = *(++ptr)) != 0) runlength++; - if (ptr > pattern + pattern_length) + if ((const char *)ptr > pattern + pattern_length) { *errorptr = "internal error"; goto PCRE_ERROR_RETURN; } - if (ptr[1] >= tables_length - ctypes_offset) + if ((int)ptr[1] >= tables_length - ctypes_offset) { *errorptr = ERR6; goto PCRE_ERROR_RETURN;