Apply fix for CVE-2008-2371 to fix a heap-based buffer overflow.
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 1 Jul 2008 03:27:14 +0000 (03:27 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 1 Jul 2008 03:27:14 +0000 (03:27 +0000)
        * glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
        fix a heap-based buffer overflow.

svn path=/trunk/; revision=7123

ChangeLog
glib/pcre/pcre_compile.c

index 9af8de4..b5bc37e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
+       fix a heap-based buffer overflow.
+
 2008-06-29  Björn Lindqvist  <bjourne@gmail.com>
 
        Bug 539626 – Update docstrings for g_object_freeze_notify and
index 514127f..54756bc 100644 (file)
@@ -4807,7 +4807,7 @@ we set the flag only if there is a literal "\r" or "\n" in the class. */
                (lengthptr == NULL || *lengthptr == 2 + 2*LINK_SIZE))
             {
             cd->external_options = newoptions;
-            options = newoptions;
+            options = *optionsptr = newoptions;
             }
          else
             {