solidity/test/libsolidity/smtCheckerTests/overflow/overflow_mul_cex_with_array.sol

14 lines
342 B
Solidity
Raw Normal View History

contract C {
function f(bytes calldata x, uint y) external pure {
2021-03-23 18:15:14 +00:00
require(x.length > 10);
x[8][0];
x[8][5*y];
}
}
2021-01-21 18:04:34 +00:00
// ====
2021-03-31 15:11:54 +00:00
// SMTEngine: all
2021-01-21 18:04:34 +00:00
// SMTIgnoreCex: yes
// ----
2021-03-31 15:11:54 +00:00
// Warning 4984: (111-114): CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
// Warning 6368: (106-115): CHC: Out of bounds access happens here.