]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Allow for behavior to be compile-time
authorJim Jagielski <jim@apache.org>
Tue, 20 Aug 2002 00:13:48 +0000 (00:13 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 20 Aug 2002 00:13:48 +0000 (00:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96453 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_strtol.c

index ce46c44c6e0670d0eda617b3a4e92a33f9bee8fe..d76abd02f58f3e920700f907da4764f1ea4f8d71 100644 (file)
@@ -197,7 +197,9 @@ API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base)
                        break;
                if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) {
                        any = -1;
+#ifdef AP_STRTOL_OVERFLOW_IS_BAD_CHAR
                        break;
+#endif
                } else {
                        any = 1;
                        acc *= base;