]> granicus.if.org Git - apache/commit
Do not use atol() for the Content-Length parsing as its handling of error
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Jun 2002 22:46:30 +0000 (22:46 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Jun 2002 22:46:30 +0000 (22:46 +0000)
commit9ca73a8515b0c9dabb09a80728295027609d92d5
tree2e6d98663b4281ff676e17ffbbe4563fa38f5e1e
parent8f46e3f21eb9001fc63ca2dbd7aecca653c08262
Do not use atol() for the Content-Length parsing as its handling of error
cases is undetermined by the ANSI C standard.

Instead, use strtol() with a check for the ERANGE error condition.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95740 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_protocol.c