php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80174 Memory leak in XML module
Submitted: 2020-10-02 11:28 UTC Modified: 2020-10-05 13:32 UTC
From: prisacari dot dmitrii at gmail dot com Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 7.4.11 OS: Ubuntu 18.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: prisacari dot dmitrii at gmail dot com
New email:
PHP Version: OS:

 

 [2020-10-02 11:28 UTC] prisacari dot dmitrii at gmail dot com
Description:
------------
Under certain circumstances the memory limit that is set in PHP configuration is bypassed and a memory leak is present.

I've shared a google drive directory with a demo of the issue and the code to reproduce the issue:
https://drive.google.com/drive/folders/1f8eh7VMuLBbXgEl4CQ-OyiMWigOv4FBc?usp=sharing

Test script:
---------------
https://gist.github.com/icamys/2e680774f06e21d956b2486eaa83c054


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-05 13:32 UTC] nikic@php.net
-Status: Open +Status: Wont fix -Type: Security +Type: Bug
 [2020-10-05 13:32 UTC] nikic@php.net
This is memory allocated by libxml over which PHP has no control -- and no, we cannot replace libxml allocation functions because that would conflict with other libxml users that may be loaded into the same process.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC