Skip to content

Commit f8c514b

Browse files
nikicsmalyshev
authored andcommitted
Fixed bug #74111
1 parent 8dc4f4d commit f8c514b

File tree

4 files changed

+580
-596
lines changed

4 files changed

+580
-596
lines changed

ext/standard/tests/serialize/bug25378.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool(false)
4242
Notice: unserialize(): Error at offset 17 of 33 bytes in %sbug25378.php on line %d
4343
bool(false)
4444

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

4848
Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
Bug #74111: Heap buffer overread (READ: 1) finish_nested_data from unserialize
3+
--FILE--
4+
<?php
5+
$s = 'O:8:"stdClass":00000000';
6+
var_dump(unserialize($s));
7+
?>
8+
--EXPECTF--
9+
Notice: unserialize(): Error at offset 25 of 23 bytes in %s on line %d
10+
bool(false)

0 commit comments

Comments
 (0)