You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2019/10/17 23:04:00 UTC

[jira] [Resolved] (VFS-744) org.apache.commons.vfs2.FileContent.getByteArray() can throw NegativeArraySizeException for BZip2 files

     [ https://issues.apache.org/jira/browse/VFS-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved VFS-744.
---------------------------------
    Fix Version/s: 2.5.0
       Resolution: Fixed

In git master.

> org.apache.commons.vfs2.FileContent.getByteArray() can throw NegativeArraySizeException for BZip2 files
> -------------------------------------------------------------------------------------------------------
>
>                 Key: VFS-744
>                 URL: https://issues.apache.org/jira/browse/VFS-744
>             Project: Commons VFS
>          Issue Type: New Feature
>            Reporter: Gary D. Gregory
>            Priority: Major
>             Fix For: 2.5.0
>
>
> The method {{org.apache.commons.vfs2.FileContent.getByteArray()}} can throw {{NegativeArraySizeException}} for BZip2 files when a file size within the compressed file cannot be determined.
>  This method is called by:
> - org.apache.commons.vfs2.FileContent.getString(Charset)
> - org.apache.commons.vfs2.FileContent.getString(String)
> - org.apache.commons.vfs2.FileUtil.getContent(FileObject)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)