blob: fd7165894c71fc65e0acbe2911fb275c64557c4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Bug #38322 (reading past array in sscanf() leads to segfault/arbitrary code execution)
--FILE--
<?php
$str = "a b c d e";
var_dump(sscanf("a ",'%1$s',$str));
echo "Done\n";
?>
--EXPECT--
int(1)
Done
|