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:35:18 +0200
commit710eee5555bc5c95692bd3c84f5d2b5d687349b6 (patch)
tree64b2656272010db7c50f800facf6741599a8ba3a
parent7d163e8a0880ae8af2dd869071393e5dc07ef271 (diff)
downloadphp-git-710eee5555bc5c95692bd3c84f5d2b5d687349b6.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