18 lines
381 B
PHP
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
|