Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix smallvec vulnerability #502

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/advisory
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ then
sed -i -e 's|db-path.*|db-path = "/cache/cargo/advisory-db"|' deny.toml
fi

echo '--- deny: Version'
cargo deny --version

echo '--- deny: Advisories'
cargo deny check advisories

Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in
name = "clang-env-with-nightly-rust";
buildInputs = [
(pkgs.rustChannelOf { rustToolchain = ./rust-toolchain; }).rust
cargo-deny
clang
llvmPackages.libclang
olm
Expand Down
2 changes: 1 addition & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# The path where the advisory database is cloned/fetched into
db-path = "~/cargo/advisory-db"
# The url of the advisory database to use
db-url = "https://github.com/rustsec/advisory-db"
db-urls = [ "https://github.com/rustsec/advisory-db" ]
# The lint level for security vulnerabilities
vulnerability = "deny"
# The lint level for unmaintained crates
Expand Down
8 changes: 8 additions & 0 deletions librad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ features = ["logging", "dangerous_configuration"]
version = "1.0"
features = ["derive"]

# Note: this is not a direct dependency. governor depends on
# parking_lot, which depends on smallvec. There is vulnerability
# in v1.0 and so we're forcing cargo to use this version instead.
#
# Tracking issue in governor: https://github.com/antifuchs/governor/issues/60
[dependencies.smallvec]
version = ">=1.6.1"

[dependencies.tokio]
version = "0.2"
features = ["full"]
Expand Down