php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68779 Incorrect sizeof
Submitted: 2015-01-09 14:38 UTC Modified: -
From: bugreports at internot dot info Assigned:
Status: Closed Package: *General Issues
PHP Version: master-Git-2015-01-09 (Git) OS: Linux Ubuntu 14.04
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: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2015-01-09 14:38 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /Zend/zend_API.c:

1011                class_type->static_members_table = emalloc(sizeof(zval*) * class_type->default_static_members_count);

It should be sizeof(zval), no?

Thanks,



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-10 16:12 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=84f2311bc98dc2e1d45ce9e67615ce3592ed39c2
Log: Fixed #68779 (Incorrect sizeof)
 [2015-01-10 16:12 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=84f2311bc98dc2e1d45ce9e67615ce3592ed39c2
Log: Fixed #68779 (Incorrect sizeof)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC