Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 505934 | Differences between
and this patch

Collapse All | Expand All

(-)tomcat/jk/trunk/native/common/jk_ajp_common.c (-4 / +8 lines)
Lines 1479-1489 Link Here
1479
1479
1480
    /* Pick the max size since we don't know the content_length
1480
    /* Pick the max size since we don't know the content_length
1481
     */
1481
     */
1482
    if ((r->is_chunked && len == 0) || len < 0 || len > maxlen) {
1482
    if (r->is_chunked && ae->left_bytes_to_send == 0) {
1483
        len = maxlen;
1483
        len = maxlen;
1484
    }
1484
    } else {
1485
    if ((jk_uint64_t)len > ae->left_bytes_to_send) {
1485
        if ((jk_uint64_t)maxlen > ae->left_bytes_to_send) {
1486
        len = (int)ae->left_bytes_to_send;
1486
            maxlen = (int)ae->left_bytes_to_send;
1487
        }
1488
        if (len < 0 || len > maxlen) {
1489
            len = maxlen;
1490
        }
1487
    }
1491
    }
1488
1492
1489
    if ((len = ajp_read_fully_from_server(r, l, read_buf, len)) < 0) {
1493
    if ((len = ajp_read_fully_from_server(r, l, read_buf, len)) < 0) {

Return to bug 505934