/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
array
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/array/bug70713.phpt
--TEST-- Bug #70713: Use After Free Vulnerability in array_walk()/array_walk_recursive() --FILE-- <?php class obj { function __tostring() { global $arr; $arr = 1; for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } return 'hi'; } } $arr = array('string' => new obj); try { array_walk_recursive($arr, 'settype'); } catch (\TypeError $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- Iterated value is no longer an array or object
Copyright ©2k19 -
Hexid
|
Tex7ure