designsecurity / progpilot

A static analysis tool for security
MIT License
332 stars 61 forks source link

PHP Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! #23

Closed binary64 closed 1 year ago

binary64 commented 4 years ago
PHP Fatal error:  Uncaught Error: Maximum function nesting level of '256' reached, aborting! in /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op.php:96
Stack trace:
#0 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op.php(96): is_array()
#1 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op/Phi.php(28): PHPCfg\Op->addWriteRef()
#2 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php(1589): PHPCfg\Op\Phi->__construct()
#3 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php(1573): PHPCfg\Parser->readVariableRecursive()
#4 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php(1586): PHPCfg\Parser->readVariableName()
#5 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php(1573): PHPCfg\Parser->readVariableRecursive()
#6 /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Parser.php(1598): PHPCfg\Parser-> in /home/user/.static-analysis/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op.php on line 96

Is it possible to bump the dependency you use (ircmaxell/php-cfg) to the latest version? I think that might solve this..

eric-therond commented 3 years ago

Hi what version of progpilot are you using? Did you try the latest 0.8.0? If it not solve your problem, you can open an issue on https://github.com/ircmaxell/php-cfg/issues

Eric

eric-therond commented 2 years ago

if you have time to try with the latest progpilot version (v1.0.0)

Eric

eric-therond commented 1 year ago

progpilot version (v1.0.2) solves this.