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:
@@ -31,6 +31,7 @@ The other verification targets that the SMTChecker checks at compile time are:
|
||||
- Division by zero.
|
||||
- Trivial conditions and unreachable code.
|
||||
- Popping an empty array.
|
||||
- Out of bounds index access.
|
||||
- Insufficient funds for a transfer.
|
||||
|
||||
The potential warnings that the SMTChecker reports are:
|
||||
@@ -457,6 +458,7 @@ list of one or more verification targets. The keywords that represent the target
|
||||
- Division by zero: ``divByZero``.
|
||||
- Trivial conditions and unreachable code: ``constantCondition``.
|
||||
- Popping an empty array: ``popEmptyArray``.
|
||||
- Out of bounds array/fixed bytes index access: ``outOfBounds``.
|
||||
- Insufficient funds for a transfer: ``balance``.
|
||||
- All of the above: ``all``.
|
||||
- None of the above: ``none``.
|
||||
|
||||
@@ -379,7 +379,7 @@ Input Description
|
||||
// Choose which model checker engine to use: all (default), bmc, chc, none.
|
||||
"engine": "chc",
|
||||
// Choose which targets should be checked: all (default), constantCondition,
|
||||
// underflow, overflow, divByZero, balance, assert, popEmptyArray.
|
||||
// underflow, overflow, divByZero, balance, assert, popEmptyArray, outOfBounds.
|
||||
// See the Formal Verification section for the targets description.
|
||||
// Multiple targets can be selected at the same time, separated by a comma
|
||||
// without spaces:
|
||||
|
||||
Reference in New Issue
Block a user