Closed fwsGonzo closed 8 months ago
It turns out that blocks were limited to 255 instructions before they restarted with C-extension enabled. Yes, it really does add a ton of complexity to simulation. I hate it. Anyway, fixed now with a new bytecode that restart the block sequence keeping PC properly in synch.
Confirmed with fuzzing
I extracted the payload, and I can replicate it in a new regression test.
So far I have no idea what the cause is. The branching seems to be OK within the segment. With debug-stepping enabled it's just looping until it hits max instructions (what WASM calls gas). Still investigating.