View | Details | Raw Unified | Return to bug 33599
Collapse All | Expand All

(-)httpd-2.0.53.orig/modules/http/http_protocol.c (-2 / +2 lines)
Lines 770-776 Link Here
770
770
771
            ctx->state = BODY_LENGTH;
771
            ctx->state = BODY_LENGTH;
772
            errno = 0;
772
            errno = 0;
773
            ctx->remaining = strtol(lenp, &endstr, 10);	/* we depend on ANSI */
773
            ctx->remaining = strtoll(lenp, &endstr, 10);	/* we depend on ANSI */
774
774
775
            /* This protects us from over/underflow (the errno check),
775
            /* This protects us from over/underflow (the errno check),
776
             * non-digit chars in the string (excluding leading space)
776
             * non-digit chars in the string (excluding leading space)
Lines 1757-1763 Link Here
1757
        char *endstr;
1757
        char *endstr;
1758
1758
1759
        errno = 0;
1759
        errno = 0;
1760
        r->remaining = strtol(lenp, &endstr, 10); /* depend on ANSI */
1760
        r->remaining = strtoll(lenp, &endstr, 10); /* depend on ANSI */
1761
1761
1762
        /* See comments in ap_http_filter() */
1762
        /* See comments in ap_http_filter() */
1763
        if (errno || (endstr && *endstr) || (r->remaining < 0)) {
1763
        if (errno || (endstr && *endstr) || (r->remaining < 0)) {

Return to bug 33599