]> granicus.if.org Git - php/commitdiff
MFB: fix CVE-2008-2371
authorNuno Lopes <nlopess@php.net>
Sun, 6 Jul 2008 15:23:44 +0000 (15:23 +0000)
committerNuno Lopes <nlopess@php.net>
Sun, 6 Jul 2008 15:23:44 +0000 (15:23 +0000)
ext/pcre/pcrelib/pcre_compile.c

index 51a51e1253cbd16dce2a17e5c337bc89f5b88100..0f3ebf93fd2af61ae712e5cc649ee6e311f598bd 100644 (file)
@@ -4929,7 +4929,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
             {