Blame SOURCES/apr-1.4.8-CVE-2017-12613.patch

c9941b
--- a/time/unix/time.c  2017/09/10 22:11:37 1807974
c9941b
+++ b/time/unix/time.c  2017/09/10 22:30:14 1807975
c9941b
@@ -142,6 +142,9 @@
c9941b
     static const int dayoffset[12] =
c9941b
     {306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275};
c9941b
 
c9941b
+    if (xt->tm_mon < 0 || xt->tm_mon >= 12)
c9941b
+        return APR_EBADDATE;
c9941b
+
c9941b
     /* shift new year to 1st March in order to make leap year calc easy */
c9941b
 
c9941b
     if (xt->tm_mon < 2)