mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
14 lines
211 B
PHP
14 lines
211 B
PHP
--TEST--
|
|
Bug #38322 (reading past array in sscanf() leads to segfault/arbitary code execution)
|
|
--FILE--
|
|
<?php
|
|
|
|
$str = "a b c d e";
|
|
var_dump(sscanf("a ",'%1$s',$str));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
int(1)
|
|
Done
|