Open bshastry opened 2 years ago
Note: this does work with --via-ir
, so the issue here is (probably) the legacy code transform on inline assembly messing up the stack heights on a stack-too-deep case.
But we should definitely investigate why this passes through to this stack height assertion and whether anything might slip through entirely.
Hey! 👋 What is the impact of this bug? (High, Medium, Low)
Unknown. Probably low in the end, but it's weird that it's caught at the wrong place, so it should be investigated why that is and whether anything else can bleed through. We don't actually really need to fix it, since it's only a corner case in legacy codegen, but we need to check if there is a more severe bug hidden in the vicinity of this - so as long as we haven't done that, I'd consider it medium.
throws
https://github.com/ethereum/solidity/blob/80d49f37028b13e162951b6b67b0a42f477ba93c/libevmasm/Assembly.cpp#L53
Repro