From 0c93ccebf9000e2f6dbbae9d6d6f182a229b84b3 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 20 Aug 2002 00:13:48 +0000 Subject: [PATCH] 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 --- src/ap/ap_strtol.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2