FuelLabs / fuel-vm

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

Fix incorrect padding of LDC mode 2 and release 0.58.2 #854

Closed Dentosal closed 1 month ago

Dentosal commented 1 month ago

The following bug was reported:

I think we should only copy length_unpadded instead of length here, and the remaining length-length_padded should be filled with null bytes.

This PR fixes the issue and adds a test case to show that the padding works correcty. While technically breaking, this is a bugfix release. The patch is released immediately.

Checklist

Before requesting review