1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/standard/tests/serialize/splobjectstorage_negative_count.phpt
2019-09-23 17:17:52 +02:00

18 lines
381 B
PHP

--TEST--
OSS-Fuzz: Unserializing SplObjectStorage with negative number of elements
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip requires 64-bit"); ?>
--FILE--
<?php
$str = 'C:16:"SplObjectStorage":25:{x:i:-9223372036854775808;}';
try {
var_dump(unserialize($str));
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Error at offset 24 of 25 bytes