1
0
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:
Dmitry Stogov
2017-08-15 13:12:54 +03:00
parent 0f3e01f5cc
commit 3bc1226804

View File

@@ -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)