README.md: Documented affected_arch and affected_os

These are new attributes as of `rustsec` crate v0.9.0 which use enums
from the `platforms` crate to represent CPU architectures and operating
systems.

This replaces the previous `affected_platforms` attribute (only used in
one advisory)
This commit is contained in:
Tony Arcieri
2018-07-26 21:00:11 -07:00
parent 2f2af6807c
commit 4efb940080

View File

@@ -73,9 +73,15 @@ patched_versions = [">= 1.2.0"]
# Versions which were never vulnerable (optional)
unaffected_versions = ["< 1.1.0"]
# Platforms this vulnerability specifically affects (optional)
# See: https://docs.rs/rustsec/latest/rustsec/advisory/struct.PlatformReq.html
#affected_platforms = ["*windows*"]
# CPU architectures impacted by this vulnerability (optional)
# For a list of CPU architecture strings, see the "platforms" crate:
# <https://docs.rs/platforms/latest/platforms/target/enum.Arch.html>
#affected_arch = ["x86", "x86_64"]
# Operating systems impacted by this vulnerability (optional)
# For a list of OS strings, see the "platforms" crate:
# <https://docs.rs/platforms/latest/platforms/target/enum.OS.html>
#affected_os = ["windows"]
# Vulnerability aliases, e.g. CVE IDs (optional but recommended)
# Request a CVE for your RustSec vulns: https://iwantacve.org/