mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report out of bounds index access
This commit is contained in:
@@ -3,6 +3,13 @@ pragma experimental SMTChecker;
|
||||
contract C
|
||||
{
|
||||
uint[][] a;
|
||||
constructor() {
|
||||
a.push(); a.push(); a.push();
|
||||
a[2].push();
|
||||
a[2].push();
|
||||
a[2].push();
|
||||
a[2].push();
|
||||
}
|
||||
function f() public {
|
||||
require(a[2][3] == 4);
|
||||
delete a;
|
||||
|
||||
Reference in New Issue
Block a user