Files
advisory-db/crates/once_cell/RUSTSEC-2019-0017.toml
Tony Arcieri 01ac6725d5 Fix all advisories to pass linter
Mostly related to the `affected_functions` field, which has changed a
few times.
2019-09-09 12:19:01 -07:00

31 lines
843 B
TOML

[advisory]
id = "RUSTSEC-2019-0017"
package = "once_cell"
date = "2019-09-01"
title = "Panic during initialization of Lazy<T> might trigger undefined behavior"
description = """
If during the first dereference of Lazy<T> the initialization function panics,
subsequent derefernces will execute `std::hints::unreachable_unchecked`.
Applications with `panic = "abort"` are not affected, as there will be no
subsequent dereferences.
"""
patched_versions = [">= 1.0.1"]
unaffected_versions = ["< 0.2.5"]
url = "https://github.com/matklad/once_cell/issues/46"
keywords = ["undefined_behavior"]
[affected.functions]
"once_cell::unsync::Lazy::force" = ["< 1.0.1, >= 0.2.5"]
"once_cell::unsync::Lazy::deref" = ["< 1.0.1, >= 0.2.5"]
"once_cell::sync::Lazy::force" = ["< 1.0.1, >= 0.2.5"]
"once_cell::sync::Lazy::deref" = ["< 1.0.1, >= 0.2.5"]