Picodes / 4naly3er

Static smart contract code 4naly3er

Home Page:https://github.com/Picodes/4naly3er

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`delegateCallInLoop.ts` often ends up in an infinite loop

JustDravee opened this issue Β· comments

So, this rule sometimes (always for me πŸ˜…) ends in an infinite loop. I usually delete it to run the tool.
I'm pretty sure AST would be much better.
Or, even a simple regex on delegatecall (yes, giga high chance of false positive, but may hit) would be better.
Wdyt?
https://github.com/Picodes/4naly3er/blob/main/src/issues/H/delegateCallInLoop.ts

Yes, it hits catastrophic backtracking very frequently