Skip to content

The `total_size` function for partial read the length of any `FixVec` is incorrect

Moderate
doitian published GHSA-82hm-vh7g-hrh9 Jul 30, 2021

Package

molecule (crates.io)

Affected versions

< 0.7.2

Patched versions

0.7.2

Description

Impact

Anyone who use total_size(..) function to partial read the length of any FixVec will get an incorrect result, due to the incorrect implementation.

Patches

0.7.2.

Workarounds

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

References

For more information

If you have any questions or comments about this advisory:

Severity

Moderate

CVE ID

No known CVE

Weaknesses

No CWEs