Apply fix for CVE-2008-2371 to fix a heap-based buffer overflow.

* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
        fix a heap-based buffer overflow.


svn path=/branches/glib-2-16/; revision=7124
This commit is contained in:
Matthias Clasen 2008-07-01 03:29:08 +00:00
parent 9f08c1869b
commit 7bdd7beaa2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-06-30 Matthias Clasen <mclasen@redhat.com>
Backport from trunk:
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
fix a heap-based buffer overflow.
2008-06-30 Matthias Clasen <mclasen@redhat.com>
* glib/pcre/*: Update to PCRE 7.7

View 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
{