summaryrefslogtreecommitdiff
path: root/lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c')
-rw-r--r--lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c b/lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c
new file mode 100644
index 00000000000..d87a93f1494
--- /dev/null
+++ b/lang/php54/patches/patch-ext_date_lib_parse__iso__intervals.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-ext_date_lib_parse__iso__intervals.c,v 1.1.2.2 2013/12/16 17:05:48 tron Exp $
+
+Fix for CVE-2013-6712.
+
+--- ext/date/lib/parse_iso_intervals.c.orig 2013-11-13 06:46:59.000000000 +0000
++++ ext/date/lib/parse_iso_intervals.c
+@@ -415,7 +415,7 @@ yy6:
+ break;
+ }
+ ptr++;
+- } while (*ptr);
++ } while (!s->errors->error_count && *ptr);
+ s->have_period = 1;
+ TIMELIB_DEINIT;
+ return TIMELIB_PERIOD;