X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcre%2Fpcre.c;h=4f8f82cd4ec6b7ef1a89cf3ce673bff719a77a16;hp=5824040cd7f91072089a7cb8a8e5fcadb4c6dc8a;hb=00e2e09741f51b625dc4c67e7d0090241871c940;hpb=67015baf0fede8022e1109e4398f3da027fcca5e diff --git a/pcre/pcre.c b/pcre/pcre.c index 5824040c..4f8f82cd 100644 --- a/pcre/pcre.c +++ b/pcre/pcre.c @@ -730,7 +730,7 @@ if (*p == '}') max = min; else /* Do paranoid checks, then fill in the required variables, and pass back the pointer to the terminating '}'. */ -if (min > 65535 || max > 65535) +if (min < 0 || min > 65535 || max < -1 || max > 65535) *errorptr = ERR5; else {