Blame SOURCES/apr-rh1539844.patch

99410a
diff -ur apr-1.6.3.orig/test/teststr.c apr-1.6.3/test/teststr.c
99410a
--- apr-1.6.3.orig/test/teststr.c	2016-03-03 17:11:16.000000000 +0100
99410a
+++ apr-1.6.3/test/teststr.c	2018-01-29 18:54:44.748931098 +0100
99410a
@@ -307,10 +307,15 @@
99410a
     for (; off < 999999999; off += 999) {
99410a
         apr_strfsize(off, buf);
99410a
     }
99410a
-    for (off = 1; off < LONG_MAX && off > 0; off *= 2) {
99410a
+
99410a
+    off = 1;
99410a
+    while (1) {
99410a
         apr_strfsize(off, buf);
99410a
         apr_strfsize(off + 1, buf);
99410a
         apr_strfsize(off - 1, buf);
99410a
+        if (off > LONG_MAX / 2)
99410a
+            break;
99410a
+        off *= 2;
99410a
     }
99410a
 
99410a
     ABTS_ASSERT(tc, "strfsize overflowed", buf[5] == '$');