Fix ICE when trying to decode too large static arrays

This commit is contained in:
Mathias Baumann
2020-05-26 19:36:18 +02:00
parent 50b200a5d5
commit 884e7cbffc
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,8 @@
// Used to cause ICE
contract C {
function f() public {
abi.decode("", (byte[999999999]));
}
}
// ----
// TypeError: (75-90): Type too large for memory.