summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug74103.phpt
blob: 3d474b31b1cde8659070737d5ce8d1551fb34c88 (plain)
1
2
3
4
5
6
7
8
9
--TEST--
Bug #74103: heap-use-after-free when unserializing invalid array size
--FILE--
<?php
var_dump(unserialize('a:7:{i:0;i:04;s:1:"a";i:2;i:00009617006;i:4;s:1:"a";i:4;s:1:"a";R:5;s:1:"7";R:3;s:1:"a";R:5;;s:18;}}'));
?>
--EXPECTF--
Notice: unserialize(): Error at offset 68 of 100 bytes in %s on line %d
bool(false)