crytic / crytic/slither

SSA: function parameter use index 1 instead of 0

Open
#1,683 1 comment 1 reaction 0 assignees View on GitHub
bug ir
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

```solidity
contract A{
function f(int a, int b) public returns(int){
return a+b;
}
}
```
$ `slither test.sol --print slithir-ssa`

Function A.f(int256,int256)
Expression: a + b
IRs:
TMP_0(int256) = a_1 (c)+ b_1
RETURN TMP_0
```

Here `a_1` should be `a_0`. In particular this will break the taint analysis on the SSA API

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.