Skip to content

Cargo: Eliminate security warning about unused atty dependency#1021

Merged
val-ms merged 2 commits intoCisco-Talos:mainfrom
val-ms:CLAM-2436-no-clap-no-atty
Sep 28, 2023
Merged

Cargo: Eliminate security warning about unused atty dependency#1021
val-ms merged 2 commits intoCisco-Talos:mainfrom
val-ms:CLAM-2436-no-clap-no-atty

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Sep 7, 2023

atty is unmaintained but is still used by clap.
Disabling the default features for cbindgen removes the clap dependency and thus removes atty.

Resolves: https://github.com/Cisco-Talos/clamav/security/dependabot/2

Note: the security issue wouldn't affect us if we did use it, but clap (and therefore atty) aren't actually used by cbindgen in clamav. That is to say this is not actually a security concern for us. Just silencing the warning.

atty is unmaintained but is still used by clap.
Disabling the default features for cbindgen removes the clap
dependency and thus removes atty.

Resolves: https://github.com/Cisco-Talos/clamav/security/dependabot/2
@val-ms val-ms force-pushed the CLAM-2436-no-clap-no-atty branch from 6de8a94 to 504fd9a Compare September 7, 2023 23:02
The build is running a different link.exe than the MSVC linker,
possibly the one provided by bash.

Fix by deleting /usr/bin/link.exe

See: https://yncat.github.io/2022/02/18/github-actions%E3%81%A7-msvc-%E3%81%AE-link-%E3%81%8C%E4%BD%BF%E3%81%88%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8B%E8%A9%B1.html
@val-ms val-ms merged commit 0f9de9e into Cisco-Talos:main Sep 28, 2023
@val-ms val-ms deleted the CLAM-2436-no-clap-no-atty branch September 28, 2023 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants