Commit 922c2d13 authored by Aaron Bannert's avatar Aaron Bannert
Browse files

Ignore leading zeros when parsing hex value for chunk extensions.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95352 13f79535-47bb-0310-9956-ffa450edef68
parent 50701c5d
Loading
Loading
Loading
Loading
+5 −0
Changes for modules/http/http_protocol.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;