]> granicus.if.org Git - apache/commitdiff
Ignore leading zeros when parsing hex value for chunk extensions.
authorAaron Bannert <aaron@apache.org>
Wed, 29 May 2002 14:57:26 +0000 (14:57 +0000)
committerAaron Bannert <aaron@apache.org>
Wed, 29 May 2002 14:57:26 +0000 (14:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95352 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 0871a1c69b7f0f57a60051b087ff92dd45b9ebd7..d7c5816ae2bdc8cc7f37e5852b45adf3a5b83ea5 100644 (file)
@@ -1692,6 +1692,11 @@ static long get_chunk_size(char *b)
     long chunksize = 0;
     size_t chunkbits = sizeof(long) * 8;
 
+    /* Skip leading zeros */
+    while (*b == '0') {
+        ++b;
+    }
+
     while (apr_isxdigit(*b) && (chunkbits > 0)) {
         int xvalue = 0;