You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/08/19 17:57:41 UTC
DO NOT REPLY [Bug 22557] New: -
No reallocation in org.apache.jasper.runtime.BodyContentImpl.write(int)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22557>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22557
No reallocation in org.apache.jasper.runtime.BodyContentImpl.write(int)
Summary: No reallocation in
org.apache.jasper.runtime.BodyContentImpl.write(int)
Product: Tomcat 5
Version: 5.0.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: damiengarbarino@yahoo.fr
In org.apache.jasper.runtime.BodyContentImpl.write(int) if we are at the end of
the buffer (nextChar = bufferSize), the reallocation do nothing. And so we have
an ArrayIndexOutOfBoundsException
StackTrace:
java.lang.ArrayIndexOutOfBoundsException: 7680
at org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:111)
Patch:
On line (109) replace "reAllocBuff (0);" by "reAllocBuff (1);" to really realloc
ate the buffer.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org