summaryrefslogtreecommitdiff
path: root/lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re')
-rw-r--r--lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re b/lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re
new file mode 100644
index 00000000000..82b0fcb09b9
--- /dev/null
+++ b/lang/php55/patches/patch-ext_date_lib_parse__iso__intervals.re
@@ -0,0 +1,15 @@
+$NetBSD: patch-ext_date_lib_parse__iso__intervals.re,v 1.1.2.2 2013/12/16 17:05:48 tron Exp $
+
+Fix for CVE-2013-6712.
+
+--- ext/date/lib/parse_iso_intervals.re.orig 2013-11-12 14:17:27.000000000 +0000
++++ ext/date/lib/parse_iso_intervals.re
+@@ -348,7 +348,7 @@ isoweek = year4 "-"? "W" weekof
+ break;
+ }
+ ptr++;
+- } while (*ptr);
++ } while (!s->errors->error_count && *ptr);
+ s->have_period = 1;
+ TIMELIB_DEINIT;
+ return TIMELIB_PERIOD;