solidity/test/libsolidity/smtCheckerTests/out_of_bounds/fixed_bytes_4.sol
2021-03-30 10:28:48 +02:00

11 lines
217 B
Solidity

pragma experimental SMTChecker;
contract C {
function r(bytes32 x, uint y) public pure {
x[0]; // safe access
x[y]; // oob access
}
}
// ----
// Warning 6368: (116-120): CHC: Out of bounds access happens here.