Skip to content

Commit

Permalink
Fixed bug #74111
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic authored and smalyshev committed Jul 5, 2017
1 parent 8dc4f4d commit f8c514b
Show file tree
Hide file tree
Showing 4 changed files with 580 additions and 596 deletions.
2 changes: 1 addition & 1 deletion ext/standard/tests/serialize/bug25378.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ bool(false)
Notice: unserialize(): Error at offset 17 of 33 bytes in %sbug25378.php on line %d
bool(false)

Notice: unserialize(): Error at offset 33 of 32 bytes in %sbug25378.php on line %d
Notice: unserialize(): Error at offset 32 of 32 bytes in %sbug25378.php on line %d
bool(false)

Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
Expand Down
10 changes: 10 additions & 0 deletions ext/standard/tests/serialize/bug74111.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--TEST--
Bug #74111: Heap buffer overread (READ: 1) finish_nested_data from unserialize
--FILE--
<?php
$s = 'O:8:"stdClass":00000000';
var_dump(unserialize($s));
?>
--EXPECTF--
Notice: unserialize(): Error at offset 25 of 23 bytes in %s on line %d
bool(false)
Loading

0 comments on commit f8c514b

Please sign in to comment.