|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-07-10 17:29 UTC] johannes@php.net
Description:
------------
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
Patchesbug65236.diff (last revision 2013-07-10 17:29 UTC by johannes@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
"The news page mentions this security fix is in PHP 5.5.1, however the changelog on the website has no mention of it. Is it affecting PHP 5.4/5.5 or not?" Yes, versions of than php 5.5 are effected. $ php -v PHP 5.4.4 (cli) (built: Jul 4 2012 17:28:56) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans c.php: <?php xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a); $php c.php Segmentation fault: 11