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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC