binary_vec_io access memory out-of-bounds in binary_read_to_ref and binary_write_from_ref
High severity
GitHub Reviewed
Published
Oct 22, 2025
to the GitHub Advisory Database
•
Updated Oct 22, 2025
Description
Published to the GitHub Advisory Database
Oct 22, 2025
Reviewed
Oct 22, 2025
Last updated
Oct 22, 2025
Safe functions accept a single
&T
or&mut T
but multiply byn
to create slices extending beyond allocated memory whenn > 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.
References