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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 14:01:24 2020 UTC