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

(-)org/apache/jasper/runtime/BodyContentImpl.java (-4 / +4 lines)
Lines 495-502 Link Here
495
        } else {
495
        } else {
496
            nextChar = 0;
496
            nextChar = 0;
497
            if (LIMIT_BUFFER && (cb.length > Constants.DEFAULT_TAG_BUFFER_SIZE)) {
497
            if (LIMIT_BUFFER && (cb.length > Constants.DEFAULT_TAG_BUFFER_SIZE)) {
498
                bufferSize = Constants.DEFAULT_TAG_BUFFER_SIZE;
498
                cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE];
499
                cb = new char[bufferSize];
499
                bufferSize = cb.length;
500
            }
500
            }
501
        }
501
        }
502
    }
502
    }
Lines 644-651 Link Here
644
            len = cb.length;
644
            len = cb.length;
645
        }
645
        }
646
        
646
        
647
        bufferSize = cb.length + len;
647
        char[] tmp = new char[cb.length + len];
648
        char[] tmp = new char[bufferSize];
648
        bufferSize = tmp.length;
649
        
649
        
650
        System.arraycopy(cb, 0, tmp, 0, cb.length);
650
        System.arraycopy(cb, 0, tmp, 0, cb.length);
651
        cb = tmp;
651
        cb = tmp;

Return to bug 51124