Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADF451063C for ; Wed, 10 Jul 2013 09:48:01 +0000 (UTC) Received: (qmail 25448 invoked by uid 500); 10 Jul 2013 09:47:56 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 25262 invoked by uid 500); 10 Jul 2013 09:47:53 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25106 invoked by uid 99); 10 Jul 2013 09:47:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 09:47:51 +0000 Date: Wed, 10 Jul 2013 09:47:51 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IO-390) FileUtils.sizeOfDirectoryAsBigInteger can overflow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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