Open
Description
Hi! Slither crashes when an inline Yul assembly contains a function call with the same name as a local variable.
Running: slither a.sol
contract Test {
function test(int256 a) internal {
assembly {
function a() {}
function b() { a() }
}
}
}
Output:
Traceback (most recent call last):
...
slither.exceptions.SlitherException: unexpected function call target type <class 'slither.core.variables.local_variable.LocalVariable'>
ERROR:root:Error:
ERROR:root:unexpected function call target type <class 'slither.core.variables.local_variable.LocalVariable'>
ERROR:root:Please report an issue to https://github.com/crytic/slither/issues
It appears that Slither interprets a()
as a function call to the local variable a
, rather than the function a
defined in the Yul code.
Slither version: 0.11.0