mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
14 lines
209 B
PHP
14 lines
209 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";
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
Done
|