Skip to content

Commit 3d08abb

Browse files
author
SVN Migration
committed
This commit was manufactured by cvs2svn to create branch 'PECL_4_3'.
1 parent d8e9ed9 commit 3d08abb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ext/sqlite/tests/sqlite_027.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
sqlite: crash inside sqlite_escape_string() & sqlite_udf_encode_binary
3+
--SKIPIF--
4+
<?php # vim:ft=php
5+
if (!extension_loaded("sqlite")) print "skip"; ?>
6+
--FILE--
7+
<?php
8+
var_dump(strlen(sqlite_escape_string(str_repeat("\0", 20000000))));
9+
var_dump(strlen(sqlite_udf_encode_binary(str_repeat("\0", 20000000))));
10+
?>
11+
--EXPECT--
12+
int(20000002)
13+
int(20000002)

0 commit comments

Comments
 (0)