ADVISORIES

RustSec Advisory Database

RUSTSEC-2019-0017

Panic during initialization of Lazy<T> might trigger undefined behavior

Details

If during the first dereference of Lazy<T> the initialization function panics, subsequent dereferences will execute std::hints::unreachable_unchecked.

Applications with panic = "abort" are not affected, as there will be no subsequent dereferences.

Affected packages

EcosystemPackageAffected versions
crates.ioonce_cell
From 0.2.5 before 1.0.1 (fixed in 1.0.1)

References