polkavm
polkavm copied to clipboard
Fix instruction length calculation.
Previously the length of the gas metering stub was incorrectly added to the length of the instruction that comes after. For long instructions such as 66-byte div this resulted in exceeding max. instruction length and assertion failure. This PR fixes the issue.
cc @aman4150 The fuzzer should have caught this.