Skip to content

Commit

Permalink
Made test 32/64-bit independent
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Aug 15, 2017
1 parent 0f3e01f commit 3bc1226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/standard/tests/serialize/bug74103.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3bc1226

Please sign in to comment.