Add advisory for windows (#1177)

This commit is contained in:
Konrad Borowski
2022-02-04 16:00:05 +01:00
committed by GitHub
parent 9da1eb7ef4
commit 989da55082

View File

@@ -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.