projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pcre: Fix heap-buffer-overflow when loading invalid filter files
[privoxy.git]
/
pcre
/
pcre.c
diff --git
a/pcre/pcre.c
b/pcre/pcre.c
index
38d0113
..
5824040
100644
(file)
--- a/
pcre/pcre.c
+++ b/
pcre/pcre.c
@@
-2660,8
+2660,13
@@
while ((c = *(++ptr)) != 0)
}
else class_charcount++;
ptr++;
+ if (*ptr == 0)
+ {
+ *errorptr = ERR6;
+ goto PCRE_ERROR_RETURN;
+ }
}
- while (*ptr !=
0 && *ptr !=
']');
+ while (*ptr != ']');
/* Repeats for negated single chars are handled by the general code */