VDB
Sign up
MEDIUM

GHSA-82hm-vh7g-hrh9

Partial read is incorrect in molecule

Details

### Impact

Anyone who uses `total_size(..)` function to partial read the length of any `FixVec` will get an incorrect result, due to an incorrect implementation. This has been resolved in the 0.7.2 release.

### Workarounds

If you already have the whole `FixVec` `A`, you can use `A.as_slice().len()` to get the total size of the `FixVec`.

### For more information

If you have any questions or comments about this advisory:

- [Open an issue to ask use directly](https://github.com/nervosnetwork/molecule/issues/new).

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/molecule
Introduced in: 0Fixed in: 0.7.2

Upgrade molecule to 0.7.2 or newer (ecosystem crates.io).

References