|  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:
Solve the problem:
47 - 13 = ?
Subscribe to this entry?

 [2013-07-16 05:14 UTC] aserbulov at parallels dot com
Bug is actual for PHP 5.4.17

Badly formed XML might corrupt the heap.

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-16 05:22 UTC]
-Status: Open +Status: Duplicate
 [2013-07-16 05:22 UTC]
duplicate of #65236 and already fixed in 5.3 branch, 5.4 and 5.5 will follow 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 07:03:33 2021 UTC