polkavm icon indicating copy to clipboard operation
polkavm copied to clipboard

Fix instruction length calculation.

Open igankevich opened this issue 6 months ago • 1 comments

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.

igankevich avatar Jun 26 '25 12:06 igankevich

cc @aman4150 The fuzzer should have caught this.

koute avatar Jun 30 '25 06:06 koute