View-pure checker misses reads from storage pointer variable
Open
bug :bug:
high effort
medium impact
must have
should report error
- Dominant language
- C++
- Stars
- 25.7k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 21
Description
```
contract Storage {
struct S { uint x; }
S t;
function store(S storage x) internal {
S memory y = x;
}
function f() public {
store(t);
}
}
```
Function `store` is considered `pure`. Same if `x` is used in function call conversion to memory. Reading members from `x` is properly detected.
Contributor guide
Assessment
This issue has not been assessed yet.