Edit report at https://bugs.php.net/bug.php?id=80174&edit=1
ID: 80174
Updated by: nikic@php.net
Reported by: prisacari dot dmitrii at gmail dot com
Summary: Memory leak in XML module
-Status: Open
+Status: Wont fix
-Type: Security
+Type: Bug
Package: DOM XML related
Operating System: Ubuntu 18.04
PHP Version: 7.4.11
Block user comment: N
Private report: Y
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2020-10-02 11:28:42] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80174&edit=1