php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40634 invalid pointer in ext/standard/head.c(140)
Submitted: 2007-02-26 01:58 UTC Modified: 2007-02-26 02:12 UTC
From: judas dot iscariote at gmail dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5CVS-2007-02-26 (CVS) OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: judas dot iscariote at gmail dot com
New email:
PHP Version: OS:

 

 [2007-02-26 01:58 UTC] judas dot iscariote at gmail dot com
Description:
------------
Current 5_2 seems to have a buffer overflow this issue is not present in released versions.

this can be reproduced with php compiled in debug mode.

Reproduce code:
---------------
I dont have reproduce code atm, but it is as easy to load phpmyadmin,log-in (auth type cookie) and the error happends inmediately and permanent.

Expected result:
----------------
no error

Actual result:
--------------
Script:  '/srv/www/htdocs/sql/index.php'
---------------------------------------
/home/cristian/php5/ext/standard/head.c(140) : Block 0x00EA1EC8 status:
Beginning:      OK (allocated on /home/cristian/php5/main/spprintf.c:222, 79 bytes)
    Start:      OK
      End:      Overflown (magic=0x00000073 instead of 0xBBA15242)
                At least 4 bytes overflown
---------------------------------------
[Sun Feb 25 22:49:43 2007]  Script:  '/srv/www/htdocs/sql/index.php'
---------------------------------------
/home/cristian/php5/ext/standard/head.c(140) : Block 0x010914A8 status:
Invalid pointer: ((size=0x000000A9) != (next.prev=0x74617020))
---------------------------------------

hell:~ # rclighttpd restart
Shutting down lighttpd                                                done
Starting lighttpd                                                     done
hell:~ # [Sun Feb 25 22:50:07 2007]  Script:  '/srv/www/htdocs/sql/index.php'
---------------------------------------
/home/cristian/php5/ext/standard/head.c(140) : Block 0x00EA1EC8 status:
Beginning:      OK (allocated on /home/cristian/php5/main/spprintf.c:222, 79 bytes)
    Start:      OK
      End:      Overflown (magic=0x00000073 instead of 0x7B97D628)
                At least 4 bytes overflown
---------------------------------------
[Sun Feb 25 22:50:08 2007]  Script:  '/srv/www/htdocs/sql/index.php'
---------------------------------------
/home/cristian/php5/ext/standard/head.c(140) : Block 0x010914A8 status:
Invalid pointer: ((size=0x000000A9) != (next.prev=0x3D687461))
---------------------------------------


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-26 02:12 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 02:01:32 2025 UTC