php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79773 Memory bugs in ldap extension
Submitted: 2020-07-03 08:06 UTC Modified: 2020-07-29 08:42 UTC
From: ptomulik at meil dot pw dot edu dot pl Assigned: nikic (profile)
Status: Closed Package: LDAP related
PHP Version: 7.3Git-2020-07-03 (Git) OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ptomulik at meil dot pw dot edu dot pl
New email:
PHP Version: OS:

 

 [2020-07-03 08:06 UTC] ptomulik at meil dot pw dot edu dot pl
Description:
------------
Memory bugs such as leaks and access to freed memory are detected by phpt tests in debug mode. This happens in git PHP-7.3 and in git master (8.0). I guess, the same is for 7.4. This may be replicated:

- access to freed memory: when using LDAP_CONTROL_VALUESRETURNFILTER
- memory leak: when using LDAP_CONTROL_PRE_READ, LDAP_CONTROL_POST_READ, LDAP_CONTROL_SORTREQUEST, or ldap_exop_passwd() with 5 arguments.




Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-03 14:32 UTC] ptomulik at meil dot pw dot edu dot pl
The following pull request has been associated:

Patch Name: Fix ldap memory bugs for PHP 7.3 (fix: #79773)
On GitHub:  https://github.com/php/php-src/pull/5799
Patch:      https://github.com/php/php-src/pull/5799.patch
 [2020-07-03 14:32 UTC] ptomulik at meil dot pw dot edu dot pl
The following pull request has been associated:

Patch Name:  Fix ldap memory bugs for PHP 7.4 (fix: #79773)
On GitHub:  https://github.com/php/php-src/pull/5801
Patch:      https://github.com/php/php-src/pull/5801.patch
 [2020-07-03 14:33 UTC] ptomulik at meil dot pw dot edu dot pl
The following pull request has been associated:

Patch Name: Enable ldap tests on azure and fix memory bugs (fix: #79773 for 8.x)
On GitHub:  https://github.com/php/php-src/pull/5794
Patch:      https://github.com/php/php-src/pull/5794.patch
 [2020-07-29 08:40 UTC] ptomulik at meil dot pw dot edu dot pl
I believe, this bug is now fixed via php-src PRs: #5764, #5799, #5801, #546, #5851.
 [2020-07-29 08:42 UTC] ptomulik at meil dot pw dot edu dot pl
Mistake. Should be #5794, not #5764.
 [2020-07-29 08:42 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-07-29 08:45 UTC] ptomulik at meil dot pw dot edu dot pl
.. and #5846 instead of #546. So the correct list is  #5794, #5799, #5801, #5846, #5851.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 11:01:29 2024 UTC