php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31070 Possible integer overflow
Submitted: 2004-12-13 15:23 UTC Modified: 2005-01-22 01:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: dennis at inmarket dot lviv dot ua Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dennis at inmarket dot lviv dot ua
New email:
PHP Version: OS:

 

 [2004-12-13 15:23 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-14 05:16 UTC] 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


 [2005-01-22 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 18:01:31 2024 UTC