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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC