From: Jim Jagielski Date: Tue, 20 Aug 2002 00:13:48 +0000 (+0000) Subject: Allow for behavior to be compile-time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c93ccebf9000e2f6dbbae9d6d6f182a229b84b3;p=thirdparty%2Fapache%2Fhttpd.git Allow for behavior to be compile-time git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96453 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ap/ap_strtol.c b/src/ap/ap_strtol.c index ce46c44c6e0..d76abd02f58 100644 --- a/src/ap/ap_strtol.c +++ b/src/ap/ap_strtol.c @@ -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;