solidity/test/libsolidity/smtCheckerTests/overflow/overflow_mul_cex_with_array.sol
2022-04-01 23:41:18 -05:00

14 lines
360 B
Solidity

contract C {
function f(bytes calldata x, uint y) external pure {
require(x.length > 10);
x[8][0];
x[8][5*y];
}
}
// ====
// SMTEngine: all
// SMTIgnoreCex: yes
// ----
// Warning 4984: (111-114='5*y'): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
// Warning 6368: (106-115='x[8][5*y]'): CHC: Out of bounds access happens here.