FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

Handle padded_len_* overflows gracefully #719

Closed Dentosal closed 7 months ago

Dentosal commented 7 months ago

There was a bug in padded_len_word and padded_len_usize functions that would overflow on inputs close to max value of the type. While inputs around the max value were never sensible, at least the LDC opcode could be used to trigger the overflow.

Checklist

Before requesting review