ADVISORIES

RustSec Advisory Database

RUSTSEC-2021-0029

Tape::take_bytes exposes uninitialized memory to a user-provided Read

Details

Affected versions of this crate passed an unininitialized buffer to a user-provided Read instance in Tape::take_bytes.

This can result in safe Read implementations reading from the uninitialized buffer leading to undefined behavior.

The flaw was corrected in commit 1f2dc7f37dd by removing the unsafe block and zero-initializing the buffer.

Affected packages

EcosystemPackageAffected versions
crates.iotruetype
From 0.0.0-0 before 0.30.1 (fixed in 0.30.1)

References