[PHP-CVS] com php-src: add test for bug #65236: ext/xml/tests/bug65236.phpt

2013-07-10 Thread Johannes Schlüter
Commit:710eeebc5c95692bd3c84f5d2b5d687349b6
Author:Johannes Schlüter johan...@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=710eeebc5c95692bd3c84f5d2b5d687349b6

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 000..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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] com php-src: add test for bug #65236: ext/xml/tests/bug65236.phpt

2013-07-10 Thread Johannes Schlüter
Commit:154a39a72db346628cce8af1246bd6c267e6d576
Author:Johannes Schlüter johan...@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 000..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


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php