You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Slither crashes when an inline Yul assembly contains a function call with the same name as a local variable.
Running: slither a.sol
contractTest {
function test(int256a) 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
The text was updated successfully, but these errors were encountered:
Hi! Slither crashes when an inline Yul assembly contains a function call with the same name as a local variable.
Running:
slither a.sol
Output:
It appears that Slither interprets
a()
as a function call to the local variablea
, rather than the functiona
defined in the Yul code.Slither version:
0.11.0
The text was updated successfully, but these errors were encountered: