- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?phpfunctiontest($vars) {foreach ($varsas$i =>$v1) {foreach ($varsas$j =>$v2) {try {$randomFunction ='ob_flush';$reflection =newReflectionFunction($randomFunction);$args = [];$result[$randomFunction][] =$reflection->invokeArgs($args);}catch (\Throwable$e) {}}}}functionvar_fusion($var1,$var2,$var3) {$vars = [$var1,$var2,$var3];try{test($vars);}catch (ReflectionException$e) {}}ob_start(function () {thrownew \Exception('ob_start');});var_fusion($x,$y,$z);
Resulted in this output:
/php-src/Zend/zend_string.h:200:24: runtime error: null pointer passed as argument 2, which is declared to never be null/usr/include/string.h:44:28: note: nonnull attribute specified hereSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_string.h:200:24
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04