com php-src: add test for bug #65236: ext/xml/tests/bug65236.phpt
| From: | Johannes Schlüter | Date: | Wed, 10 Jul 2013 17:40:59 +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-72610@lists.php.net to get a copy of this message | ||
Commit: 154a39a72db346628cce8af1246bd6c267e6d576
Author: Johannes Schlüter <johannes@php.net> Wed, 10 Jul 2013 19:35:18 +0200
Parents: fd803718df0aa413fd8c47eaa030fcc61f3feb28
Branches: PHP-5.3.27
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=154a39a72db346628cce8af1246bd6c267e6d576
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