Report out of bounds index access

This commit is contained in:
Leonardo Alt
2021-03-30 10:28:48 +02:00
parent 2346ec1c0c
commit dbd067d6db
208 changed files with 1619 additions and 608 deletions
@@ -3,6 +3,12 @@ pragma experimental SMTChecker;
contract C
{
uint[] a;
constructor() {
a.push();
a.push();
a.push();
a.push();
}
function f(bool b) public {
a[2] = 3;
require(!b);
@@ -14,4 +20,4 @@ contract C
}
}
// ----
// Warning 6838: (119-120): BMC: Condition is always false.
// Warning 6838: (187-188): BMC: Condition is always false.