php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Sec Bug #65266 heap corruption in xml parser
Submitted: 2013-07-16 05:14 UTC Modified: 2013-07-16 05:22 UTC
From: aserbulov at parallels dot com Assigned:
Status: Duplicate Package: *XML functions
PHP Version: 5.4.17 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 - 6 = ?
Subscribe to this entry?

 
 [2013-07-16 05:14 UTC] aserbulov at parallels dot com
Description:
------------
Bug https://bugs.php.net/bug.php?id=65236 is actual for PHP 5.4.17

Badly formed XML might corrupt the heap.

Test script:
---------------
<?php
xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);

Expected result:
----------------
Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated

Actual result:
--------------
heap corruption

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-16 05:22 UTC] pajoye@php.net
-Status: Open +Status: Duplicate
 [2013-07-16 05:22 UTC] pajoye@php.net
duplicate of #65236 and already fixed in 5.3 branch, 5.4 and 5.5 will follow 
shortly.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC