glib2/cve-2008-2371.patch

13 lines
590 B
Diff

diff -up glib-2.14.6/glib/pcre/pcre_compile.c.cve-2008-2371 glib-2.14.6/glib/pcre/pcre_compile.c
--- glib-2.14.6/glib/pcre/pcre_compile.c.cve-2008-2371 2008-07-02 10:30:50.000000000 -0400
+++ glib-2.14.6/glib/pcre/pcre_compile.c 2008-07-02 10:32:19.000000000 -0400
@@ -4701,7 +4701,7 @@ we set the flag only if there is a liter
(lengthptr == NULL || *lengthptr == 2 + 2*LINK_SIZE))
{
cd->external_options = newoptions;
- options = newoptions;
+ options = *optionsptr = newoptions;
}
else
{