com php-src: add test for bug #65236: ext/xml/tests/bug65236.phpt
| From: | Johannes Schlüter | Date: | Wed, 10 Jul 2013 17:35:18 +0000 |
| Subject: | com php-src: add test for bug #65236: ext/xml/tests/bug65236.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72608@lists.php.net to get a copy of this message | ||
Commit: 710eee5555bc5c95692bd3c84f5d2b5d687349b6
Author: Johannes Schlüter <johannes@php.net> Wed, 10 Jul 2013 19:35:18 +0200
Parents: 7d163e8a0880ae8af2dd869071393e5dc07ef271
Branches: PHP-5.3 PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=710eee5555bc5c95692bd3c84f5d2b5d687349b6
Log:
add test for bug #65236
Bugs:
https://bugs.php.net/65236
Changed paths:
A ext/xml/tests/bug65236.phpt
Diff:
diff --git a/ext/xml/tests/bug65236.phpt b/ext/xml/tests/bug65236.phpt
new file mode 100644
index 0000000..67b26d6
--- /dev/null
+++ b/ext/xml/tests/bug65236.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #65236 (heap corruption in xml parser)
+--SKIPIF--
+<?php
+require_once("skipif.inc");
+?>
+--FILE--
+<?php
+xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);
+
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
+Done