#39212 [Opn->Bgs]: filesize integer overflow

From: Date: Fri, 20 Oct 2006 14:28:00 +0000
Subject: #39212 [Opn->Bgs]: filesize integer overflow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103797@lists.php.net to get a copy of this message
ID: 39212 Updated by: tony2001@php.net Reported By: josecarlos dot norte at gmail dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: all PHP Version: 4.4.4 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2006-10-20 14:14:54] josecarlos dot norte at gmail dot com Description: ------------ the php function filesize (and probably others) are affected by a integer overflow problem if a file of 2147483649 bytes (that exceeds integer_max_value and make integer become negative) is passed to filsize(); it return negative values. Reproduce code: --------------- filesize(FILE_LONGER_OF_2147483647); Expected result: ---------------- get the REAL filesize Actual result: -------------- incorrect filesize ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39212&edit=1

« previous php.bugs (#103797) next »