#31070 [Fbk->NoF]: Possible integer overflow

From: Date: Sat, 22 Jan 2005 00:00:28 +0000
Subject: #31070 [Fbk->NoF]: Possible integer overflow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72634@lists.php.net to get a copy of this message
ID: 31070 Updated by: php-bugs@lists.php.net Reported By: dennis at inmarket dot lviv dot ua -Status: Feedback +Status: No Feedback Bug Type: Zend Engine 2 problem Operating System: Linux PHP Version: 5.0.2 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2005-01-14 05:16:15] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2004-12-13 15:23:55] dennis at inmarket dot lviv dot ua Description: ------------ I believe this is related to bug 28945, but it is in No Feedback mode, and I could not contact him to reopen it. It OCASSIONALLY happens in my app (it is a large set of classes), and writes to the error log even more amazing thing: here is the sample error log entry: [12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in memory allocation (24 * 4294967295 + 0) in /** * Returns a SQLDataBase implementation for database $name * * @param string $name database name * @return SQLDataBase a SQLDataBase implementation for database $name */ on line 11 The file that this scratch is ripped from is class definition, where no memory allocation takes place (this is an abstract class) Reproduce code: --------------- It is not possible to reproduce this bug, it is a big set of classes (about 170Kb source code), but it is caused by the engine I believe (judging from how the error is reported) Expected result: ---------------- At least the error log should be: [12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in memory allocation (24 * 4294967295 + 0) in <filename> on <line number> Actual result: -------------- 12-Nov-2004 15:50:52] PHP Fatal error: Possible integer overflow in memory allocation (24 * 4294967295 + 0) in /** * Returns a SQLDataBase implementation for database $name * * @param string $name database name * @return SQLDataBase a SQLDataBase implementation for database $name */ on line 11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31070&edit=1

« previous php.bugs (#72634) next »