diff options
author | Jakub Zelenka <bukka@php.net> | 2016-08-14 14:01:36 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-08-14 14:01:36 +0100 |
commit | 37c12f8f867ad96e005cefc545093e43b633728c (patch) | |
tree | 445dea292a1831dcc148d64f2d13731affe33cd0 /ext/json/tests | |
parent | 6ab9b531bc12ba3e746be6615f4edcc1cc387e61 (diff) | |
parent | 436d50a82192cbef4431fe9a70c641f49aec55a8 (diff) | |
download | php-git-37c12f8f867ad96e005cefc545093e43b633728c.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'ext/json/tests')
-rw-r--r-- | ext/json/tests/bug72787.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/json/tests/bug72787.phpt b/ext/json/tests/bug72787.phpt new file mode 100644 index 0000000000..c9820faa9f --- /dev/null +++ b/ext/json/tests/bug72787.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #72787 (json_decode reads out of bounds) +--SKIPIF-- +<?php if (!extension_loaded("json")) print "skip"; ?> +<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?> +--FILE-- +<?php + +var_dump(json_decode('[]', false, 0x100000000)); + +?> +--EXPECTF-- + +Warning: json_decode(): Depth must be lower than %d in %s on line %d +NULL |