You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/07/10 11:47:51 UTC

[jira] [Updated] (IO-390) FileUtils.sizeOfDirectoryAsBigInteger can overflow

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

Sebb updated IO-390:
--------------------

    Affects Version/s: 2.4
    
> FileUtils.sizeOfDirectoryAsBigInteger can overflow
> --------------------------------------------------
>
>                 Key: IO-390
>                 URL: https://issues.apache.org/jira/browse/IO-390
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Sebb
>
> FileUtils.sizeOfDirectoryAsBigInteger can overflow.
> This is because it calls FileUtils.sizeOf(file) which calls sizeOfDirectory() for processing subdirectories.
> As it stands, the method only works properly at the top level.
> A possible solution would be to create private "Big" versions of the called methods; these would not need all the checks so should be faster.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira