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/01/17 08:36:35 UTC

[jira] Created: (VFS-190) Infinite loops in RamFileRandomAccessContent

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.


[jira] Closed: (VFS-190) Infinite loops in RamFileRandomAccessContent

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed VFS-190.
-----------------------------

    Resolution: Fixed

svn ci -m "Removed the recursive method call, and pointed the read(byte[]) to the read(byte[],int,int) method as per VFS-190" src//main/java/org/apache/commons/vfs/provider/ram/RamFileRandomAccessContent.java

Sending        src/main/java/org/apache/commons/vfs/provider/ram/RamFileRandomAccessContent.java
Transmitting file data .
Committed revision 640732.

> 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
>
>         Attachments: VFS-190.patch
>
>
> 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.


[jira] Updated: (VFS-190) Infinite loops in RamFileRandomAccessContent

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated VFS-190:
------------------------------

    Comment: was deleted

> 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
>
>         Attachments: VFS-190.patch
>
>
> 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.


[jira] Commented: (VFS-190) Infinite loops in RamFileRandomAccessContent

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (VFS-190) Infinite loops in RamFileRandomAccessContent

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated VFS-190:
------------------------------

    Attachment: VFS-190.patch

> 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
>
>         Attachments: VFS-190.patch
>
>
> 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.