From 8d868299ea43efded8521651f35c4972d8e1de97 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Mon, 3 Apr 2023 21:55:45 +0100 Subject: [PATCH] Added unsound `spin` (#1671) * Added advisory for spin * Remove withdrawn artifact --------- Co-authored-by: pinkforest(she/her) <36498018+pinkforest@users.noreply.github.com> --- crates/spin/RUSTSEC-0000-0000.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/spin/RUSTSEC-0000-0000.md diff --git a/crates/spin/RUSTSEC-0000-0000.md b/crates/spin/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..cf6ecc0 --- /dev/null +++ b/crates/spin/RUSTSEC-0000-0000.md @@ -0,0 +1,16 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "spin" +date = "2023-03-31" +informational = "unsound" +url = "https://github.com/mvdnes/spin-rs/issues/148" + +[versions] +patched = [">= 0.9.8"] +unaffected = ["< 0.9.3"] +``` + +# Initialisation failure in `Once::try_call_once` can lead to undefined behaviour for other initialisers + +`Once::try_call_once` is unsound if invoked more than once concurrently and any call fails to initialise successfully.