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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 20 06:01:29 2025 UTC