From 989da55082172fd9a78050868c8cc3aa86cbd7b8 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Fri, 4 Feb 2022 16:00:05 +0100 Subject: [PATCH] Add advisory for windows (#1177) --- crates/windows/RUSTSEC-0000-0000.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 crates/windows/RUSTSEC-0000-0000.md diff --git a/crates/windows/RUSTSEC-0000-0000.md b/crates/windows/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..4815c0a --- /dev/null +++ b/crates/windows/RUSTSEC-0000-0000.md @@ -0,0 +1,23 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "windows" +date = "2022-01-02" +url = "https://github.com/microsoft/windows-rs/issues/1409" +categories = ["memory-corruption", "thread-safety"] +keywords = [] +informational = "unsound" + +[versions] +patched = [">= 0.32.0"] +unaffected = ["< 0.1.2"] + +[affected] +os = ["windows"] +``` + +# Delegate functions are missing `Send` bound + +Affected versions of this crate did not require event handlers to have `Send` bound despite there being no guarantee of them being called on any particular thread, which can potentially lead to data races and undefined behavior. + +The flaw was corrected in commit [afe3252](https://github.com/microsoft/windows-rs/commit/afe32525c22209aa8f632a0f4ad607863b51796a) by adding `Send` bounds.