mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-10 21:26:40 -04:00
16 lines
460 B
C++
16 lines
460 B
C++
$NetBSD: patch-ext_date_lib_parse__iso__intervals.re,v 1.1 2013/12/05 16:16:40 taca Exp $
|
|
|
|
Fix for CVE-2013-6712.
|
|
|
|
--- ext/date/lib/parse_iso_intervals.re.orig 2013-07-10 17:43:08.000000000 +0000
|
|
+++ ext/date/lib/parse_iso_intervals.re
|
|
@@ -383,7 +383,7 @@ isoweek = year4 "-"? "W" weekof
|
|
break;
|
|
}
|
|
ptr++;
|
|
- } while (*ptr);
|
|
+ } while (!s->errors->error_count && *ptr);
|
|
s->have_period = 1;
|
|
TIMELIB_DEINIT;
|
|
return TIMELIB_PERIOD;
|