php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #72814 Use emalloc and friends instead of malloc
Submitted: 2016-08-11 14:21 UTC Modified: 2016-10-26 17:43 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: dbase (PECL)
PHP Version: Irrelevant OS: *
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2016-08-11 14:21 UTC] cmb@php.net
Description:
------------
The dbase extension uses malloc() and friends in several places,
what circumvents the Zend memory manager, so memory_limit is not
properly handled, for instance.

Instead emalloc() and friends should be used.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-11 14:22 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-10-26 17:35 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340729
Log: Implement #72814: Use emalloc and friends instead of malloc

We replace the calls to the system memory manager with calls to the
ZendMM. As the ZendMM is infallible, we remove the checks for failed
allocations.
 [2016-10-26 17:43 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC