php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70571 Memory leak in sqlite3_do_callback
Submitted: 2015-09-24 10:38 UTC Modified: 2015-09-24 12:24 UTC
From: aharvey@php.net Assigned: aharvey (profile)
Status: Closed Package: SQLite related
PHP Version: 7.0Git-2015-09-24 (Git) OS: Irrelevant
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: aharvey@php.net
New email:
PHP Version: OS:

 

 [2015-09-24 10:38 UTC] aharvey@php.net
Description:
------------
sqlite3_do_callback() leaks the zval context when used with a custom aggregate function in PHP 7.0 due to the use of ZVAL_COPY_VALUE(). Replacing it with ZVAL_DUP() and a paired zval_ptr_dtor() removes the leak.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-24 10:38 UTC] aharvey@php.net
-Assigned To: +Assigned To: aharvey
 [2015-09-24 12:24 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2015-09-24 12:24 UTC] aharvey@php.net
The fix for this bug has been committed.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 28 07:01:23 2021 UTC