Skip to content

Commit ab4557b

Browse files
[mlir] Add tests for Add dynamic-base innerOffset width guard in ABI decode
Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
1 parent c3e41c3 commit ab4557b

File tree

3 files changed

+1102
-815
lines changed

3 files changed

+1102
-815
lines changed

test/libsolidity/semanticTests/mlir/invalid-abi.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ contract C {
2222
// g(string): 32, 33, "Hello" -> FAILURE, hex"08c379a0", 0x20, 0x27, "ABI decoding: invalid byte array", " length"
2323
// g(string): 0x10000000000000000 -> FAILURE, hex"08c379a0", 0x20, 0x22, "ABI decoding: invalid tuple offs", "et"
2424
// h(uint256[][]): 32, 2, 0x200, 0xa0, 2, 1, 2, 2, 9, 8 -> FAILURE, hex"08c379a0", 0x20, 0x2b, "ABI decoding: invalid calldata a", "rray offset"
25+
// h(uint256[][]): 32, 1, 0x10000000000000000 -> FAILURE, hex"08c379a0", 0x20, 0x2b, "ABI decoding: invalid calldata a", "rray offset"
2526
// e() -> FAILURE, hex"08c379a0", 0x20, 0x2b, "ABI decoding: invalid calldata a", "rray stride"

0 commit comments

Comments
 (0)