php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28945 Fatal error: Possible integer overflow in memory allocation
Submitted: 2004-06-28 11:34 UTC Modified: 2004-07-14 01:00 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: erwan dot le-disez at linbox dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.3.7 OS: IRIX 6.2
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: erwan dot le-disez at linbox dot com
New email:
PHP Version: OS:

 

 [2004-06-28 11:34 UTC] erwan dot le-disez at linbox dot com
Description:
------------
Hello,

During the compilation of PHP 4.3.7 the make install phase create a fatal error. The compil process is stoppped.

This seems to be a bug in php.

See bellow for the error.

Thanks
(and sorry, i don't speak english very well).

Reproduce code:
---------------
The instruction which causes the fault is :

register_shutdown_function("_PEAR_call_destructors");

Actual result:
--------------
make install
Installing PHP SAPI module:       apache
[activating module `php4' in /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf]
cp libs/libphp4.so /tmp/apache-1.3.31+php-4.3.7/libexec/libphp4.so
chmod 755 /tmp/apache-1.3.31+php-4.3.7/libexec/libphp4.so
cp /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf.bak
cp /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf.new /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf
rm /tmp/apache-1.3.31+php-4.3.7/conf/httpd.conf.new
Installing PHP CLI binary:        /tmp/apache-1.3.31+php-4.3.7/bin/
Installing PHP CLI man page:      /tmp/apache-1.3.31+php-4.3.7/man/man1/
Installing PEAR environment:      /tmp/apache-1.3.31+php-4.3.7/lib/php/

Fatal error: Possible integer overflow in memory allocation (4 * 1 + 0) in /d/Distrib/Compils/apache/php-4.3.7/pear/PEAR.php on line 967
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-12 13:44 UTC] erwan dot ledisez at linbox dot com
Hello,

I have tested with the CVS snapshot but there is the same error.

Do you have an idea ?
Thanks.


New results
------------

+ make install
Installing PHP SAPI module:       apache
[activating module `php4' in /tmp/apache-1.3.31+php200407061630/conf/httpd.conf]
cp libs/libphp4.so /tmp/apache-1.3.31+php200407061630/libexec/libphp4.so
chmod 755 /tmp/apache-1.3.31+php200407061630/libexec/libphp4.so
cp /tmp/apache-1.3.31+php200407061630/conf/httpd.conf /tmp/apache-1.3.31+php200407061630/conf/httpd.conf.bak
cp /tmp/apache-1.3.31+php200407061630/conf/httpd.conf.new /tmp/apache-1.3.31+php200407061630/conf/httpd.conf
rm /tmp/apache-1.3.31+php200407061630/conf/httpd.conf.new
Installing PHP CLI binary:        /tmp/apache-1.3.31+php200407061630/bin/
Installing PHP CLI man page:      /tmp/apache-1.3.31+php200407061630/man/man1/
Installing PEAR environment:      /tmp/apache-1.3.31+php200407061630/lib/php/

Fatal error: Possible integer overflow in memory allocation (4 * 1 + 0) in /d/Distrib/Compils/apache/php4-STABLE-200407061630/pear/PEAR.php on line 966
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
 [2004-07-14 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".
 [2004-11-12 16:01 UTC] dennis at inmarket dot lviv dot ua
I experience this problem NOT during compilation of PHP, but during EXECUTION of PHP script! It OCASSIONALLY happens, 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 inline comment is ripped of the PHP source, whereas it should be script file name!
 [2006-03-13 17:50 UTC] michael dot virnstein at brodos dot de
This problem also occures randomly when executing php scripts with PHP 4.4.2 and Apache 2.0.54 using mod_php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 12:01:32 2024 UTC