X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcre%2Fpcre.c;h=9cd178e78d15355cac59a8ed3c03c1257798e665;hp=4f8f82cd4ec6b7ef1a89cf3ce673bff719a77a16;hb=28512e5b624;hpb=85817cc55b9829e6c20db40d3a93b8380618463d diff --git a/pcre/pcre.c b/pcre/pcre.c index 4f8f82cd..9cd178e7 100644 --- a/pcre/pcre.c +++ b/pcre/pcre.c @@ -2050,7 +2050,7 @@ for (;; ptr++) /* This "while" is the end of the "do" above. */ - while (length < MAXLIT && (cd->ctypes[c = *(++ptr)] & ctype_meta) == 0); + while (*ptr && length < MAXLIT && (cd->ctypes[c = *(++ptr)] & ctype_meta) == 0); /* Update the last character and the count of literals */