Skip to content

Partial read is incorrect in molecule

Moderate severity GitHub Reviewed Published Jul 30, 2021 in nervosnetwork/molecule • Updated Jan 11, 2023

Package

cargo molecule (Rust)

Affected versions

< 0.7.2

Patched versions

0.7.2

Description

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:

References

@doitian doitian published to nervosnetwork/molecule Jul 30, 2021
Reviewed Aug 2, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Jan 11, 2023

Severity

Moderate

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-82hm-vh7g-hrh9
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.