summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2013-07-10 19:35:18 +0200
committerJohannes Schlüter <johannes@php.net>2013-07-10 19:40:59 +0200
commit154a39a72db346628cce8af1246bd6c267e6d576 (patch)
treecc078db41df24405fac3052dad7f4fc7c521860b
parentfd803718df0aa413fd8c47eaa030fcc61f3feb28 (diff)
downloadphp-git-154a39a72db346628cce8af1246bd6c267e6d576.tar.gz
add test for bug #65236
-rw-r--r--ext/xml/tests/bug65236.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/xml/tests/bug65236.phpt b/ext/xml/tests/bug65236.phpt
new file mode 100644
index 0000000000..67b26d663f
--- /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