You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2008/02/18 03:18:34 UTC
[jira] Commented: (VFS-190) Infinite loops in
RamFileRandomAccessContent
[ https://issues.apache.org/jira/browse/VFS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569773#action_12569773 ]
Henri Yandell commented on VFS-190:
-----------------------------------
Suggested fix:
Index: src/main/java/org/apache/commons/vfs/provider/ram/RamFileRandomAccessContent.java
===================================================================
--- src/main/java/org/apache/commons/vfs/provider/ram/RamFileRandomAccessContent.java (revision 628374)
+++ src/main/java/org/apache/commons/vfs/provider/ram/RamFileRandomAccessContent.java (working copy)
@@ -105,12 +105,11 @@
public void close() throws IOException
{
- close();
}
public int read(byte b[]) throws IOException
{
- return read(b);
+ return read(b, 0, b.length);
}
public int read(byte b[], int off, int len) throws IOException
> Infinite loops in RamFileRandomAccessContent
> --------------------------------------------
>
> Key: VFS-190
> URL: https://issues.apache.org/jira/browse/VFS-190
> Project: Commons VFS
> Issue Type: Bug
> Environment: Fortify
> Reporter: Henri Yandell
> Fix For: 1.1
>
>
> Both close() and read(byte[]) in the anonymous InputStream in the constructor call themselves.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.