You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/11/08 07:34:23 UTC
DO NOT REPLY [Bug 14379] New: -
[PATCH] Fix for ArrayIndexOutofBounds in util/BufferedOutputStream.java
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=14379>.
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=14379
[PATCH] Fix for ArrayIndexOutofBounds in util/BufferedOutputStream.java
Summary: [PATCH] Fix for ArrayIndexOutofBounds in
util/BufferedOutputStream.java
Product: Cocoon 2
Version: Current CVS
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: core
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: keiron@aftexsw.com
In the file util/BufferedOutputStream.java if space is needed in the buffer it
doubles the size of the current buffer.
This does not guarantee that the buffer is large enough to handle the new bytes
in the "write(byte b[], int off, int len)" method. An exception will result.
This patch keeps increasing the buffer until it is large enough.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org