Blame SOURCES/httpd-2.4.6-ab-overflow.patch

33b929
--- a/support/ab.c	2014/08/14 12:12:38	1617912
33b929
+++ b/support/ab.c	2014/08/14 12:15:31	1617913
33b929
@@ -1029,7 +1029,7 @@
33b929
                            ap_round_ms(stats[done - 1].time));
33b929
                 else
33b929
                     printf("  %d%%  %5" APR_TIME_T_FMT "\n", percs[i],
33b929
-                           ap_round_ms(stats[(int) (done * percs[i] / 100)].time));
33b929
+                           ap_round_ms(stats[(unsigned long)done * percs[i] / 100].time));
33b929
             }
33b929
         }
33b929
         if (csvperc) {
33b929
@@ -1046,7 +1046,7 @@
33b929
                 else if (i == 100)
33b929
                     t = ap_double_ms(stats[done - 1].time);
33b929
                 else
33b929
-                    t = ap_double_ms(stats[(int) (0.5 + done * i / 100.0)].time);
33b929
+                    t = ap_double_ms(stats[(unsigned long) (0.5 + (double)done * i / 100.0)].time);
33b929
                 fprintf(out, "%d,%.3f\n", i, t);
33b929
             }
33b929
             fclose(out);