cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14379] New: - [PATCH] Fix for ArrayIndexOutofBounds in util/BufferedOutputStream.java
Date Fri, 08 Nov 2002 06:34:23 GMT
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


Mime
View raw message