mirror of
https://github.com/php/php-src.git
synced 2026-04-14 19:41:05 +02:00
Made test 32/64-bit independent
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
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;}}'));
|
||||
var_dump(unserialize('a:7:{i:0;i:04;s:1:"a";i:2;i:9617006;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
|
||||
Notice: unserialize(): Error at offset 64 of 96 bytes in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Reference in New Issue
Block a user