You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Anthony Goubard (Jira)" <ji...@apache.org> on 2022/10/18 09:05:00 UTC

[jira] [Created] (VFS-825) GZip input and output stream results in StackOverflowError

Anthony Goubard created VFS-825:
-----------------------------------

             Summary: GZip input and output stream results in StackOverflowError
                 Key: VFS-825
                 URL: https://issues.apache.org/jira/browse/VFS-825
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.10.0
            Reporter: Anthony Goubard


The methods GZipFileObject#doGetInputStream and GZipFileObject#doGetOuputStream generate a StackOverflowError.

The loops are _GZipFileObject#doGetInputStream(int) -> AbstractFileObject#getInputStream() -> AbstractFileObject#getInputStream(int)  -> GZipFileObject#doGetInputStream(int)_
and _GZipFileObject#doGetOutputStream(boolean) ->_ {_}AbstractFileObject{_}{_}#getOutputStream(boolean) -> GZipFileObject#doGetOutputStream(boolean){_}

This is probably due to the commit [https://github.com/apache/commons-vfs/commit/a1aa1de2f981f624bb1022b94ceb05aa1a09f650]

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)