summaryrefslogtreecommitdiff
path: root/libre/pcre-static/01-CVE-2016-1283.patch
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 11:48:40 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 12:25:23 -0300
commit4cb1d090dc64699e4d186f6688dc9e44c1be098a (patch)
tree9665d1f37e5bb1051e59864740a92472b79f756f /libre/pcre-static/01-CVE-2016-1283.patch
parentf37f0f1cb0108a892749867603d4c55b6f17221e (diff)
downloadabslibre-4cb1d090dc64699e4d186f6688dc9e44c1be098a.tar.gz
abslibre-4cb1d090dc64699e4d186f6688dc9e44c1be098a.tar.bz2
abslibre-4cb1d090dc64699e4d186f6688dc9e44c1be098a.zip
pcre-static: add new package to [libre]
Diffstat (limited to 'libre/pcre-static/01-CVE-2016-1283.patch')
-rw-r--r--libre/pcre-static/01-CVE-2016-1283.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/libre/pcre-static/01-CVE-2016-1283.patch b/libre/pcre-static/01-CVE-2016-1283.patch
new file mode 100644
index 000000000..2c2dad29e
--- /dev/null
+++ b/libre/pcre-static/01-CVE-2016-1283.patch
@@ -0,0 +1,18 @@
+Index: pcre_compile.c
+===================================================================
+--- a/pcre_compile.c (revision 1635)
++++ b/pcre_compile.c (revision 1636)
+@@ -7311,7 +7311,12 @@
+ so far in order to get the number. If the name is not found, leave
+ the value of recno as 0 for a forward reference. */
+
+- else
++ /* This patch (removing "else") fixes a problem when a reference is
++ to multiple identically named nested groups from within the nest.
++ Once again, it is not the "proper" fix, and it results in an
++ over-allocation of memory. */
++
++ /* else */
+ {
+ ng = cd->named_groups;
+ for (i = 0; i < cd->names_found; i++, ng++)