Skip to main content
Menu
Advisories

binary_vec_io access memory out-of-bounds in binary_read_to_ref and binary_write_from_ref

GHSA-WWXP-HXH6-8GF8Published Updated GitHub

Description

Safe functions accept a single &T or &mut T but multiply by n to create slices extending beyond allocated memory when n > 1.

These functions use from_raw_parts to create slices larger than the underlying allocation, violating memory safety.

The binary_vec_io repository is archived and unmaintained.

Affected versions

References

GitHub · RustSec/advisory-db

gist.github.com

GitHub · 10XGenomics/rust-toolbox

rustsec.org