ASF Bugzilla – Attachment 26956 Details for
Bug 51124
ArrayIndexOutOfBoundsException after setting org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for BodyContentImpl class of trunk
BodyContentImpl_bug51124.patch (text/plain), 976 bytes, created by
Ramiro
on 2011-05-04 09:39:28 UTC
(
hide
)
Description:
patch for BodyContentImpl class of trunk
Filename:
MIME Type:
Creator:
Ramiro
Created:
2011-05-04 09:39:28 UTC
Size:
976 bytes
patch
obsolete
>Index: org/apache/jasper/runtime/BodyContentImpl.java >=================================================================== >--- org/apache/jasper/runtime/BodyContentImpl.java (revision 1099362) >+++ org/apache/jasper/runtime/BodyContentImpl.java (working copy) >@@ -495,8 +495,8 @@ > } else { > nextChar = 0; > if (LIMIT_BUFFER && (cb.length > Constants.DEFAULT_TAG_BUFFER_SIZE)) { >- bufferSize = Constants.DEFAULT_TAG_BUFFER_SIZE; >- cb = new char[bufferSize]; >+ cb = new char[Constants.DEFAULT_TAG_BUFFER_SIZE]; >+ bufferSize = cb.length; > } > } > } >@@ -644,8 +644,8 @@ > len = cb.length; > } > >- bufferSize = cb.length + len; >- char[] tmp = new char[bufferSize]; >+ char[] tmp = new char[cb.length + len]; >+ bufferSize = tmp.length; > > System.arraycopy(cb, 0, tmp, 0, cb.length); > cb = tmp;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51124
: 26956