php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72206 xml_parser_create/xml_parser_free leaks mem
Submitted: 2016-05-12 08:30 UTC Modified: -
From: otto at drijf dot net Assigned:
Status: Closed Package: *XML functions
PHP Version: 7.0.6 OS: OpenBSD
Private report: No CVE-ID: None
 [2016-05-12 08:30 UTC] otto at drijf dot net
Description:
------------
The memory usage of the script below goes through the roof. Does not happen on php 5.6.18


Test script:
---------------
<?php
for ($i = 0; $i < 10000000; $i++) {
  $parser = xml_parser_create();
  $ok = xml_parser_free($parser);
  if (!$ok) {
    echo 'NOT OK';
  }
}
?>

Expected result:
----------------
Empty output.

Actual result:
--------------
Out of memory error.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-14 07:11 UTC] krakjoe@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082
Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem)
 [2016-05-14 07:11 UTC] krakjoe@php.net
-Status: Open +Status: Closed
 [2016-05-14 07:11 UTC] krakjoe@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b165114013b690b338a83c606974540e0830c2bd
Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem)
 [2016-05-16 03:22 UTC] laruence@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b165114013b690b338a83c606974540e0830c2bd
Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem)
 [2016-07-20 11:31 UTC] davey@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082
Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem)
 [2016-07-20 11:31 UTC] davey@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b165114013b690b338a83c606974540e0830c2bd
Log: fix #72206 (xml_parser_create/xml_parser_free leaks mem)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC