Skip to content

Remove atty vulnerability by upgrading env_logger 0.9 → 0.11#35

Merged
iwillspeak merged 1 commit into
mainfrom
copilot/switch-alternative-dependency
Apr 8, 2026
Merged

Remove atty vulnerability by upgrading env_logger 0.9 → 0.11#35
iwillspeak merged 1 commit into
mainfrom
copilot/switch-alternative-dependency

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

atty ≤ 0.2.14 (RUSTSEC-2021-0145) is unmaintained and carries a potential unaligned pointer dereference on Windows. It entered the tree as a transitive dependency of env_logger 0.9.

Changes

  • Cargo.toml: bumps env_logger to 0.11, which replaces atty with is_terminal_polyfill (std::io::IsTerminal under the hood)
  • Cargo.lock: atty is fully removed; 15 packages updated/added accordingly

No call-site changes required — the init_logging() API (builder(), Env::new(), Target::Stdout) is unchanged across the version bump.

@iwillspeak iwillspeak marked this pull request as ready for review April 8, 2026 06:41
@iwillspeak iwillspeak merged commit 8a2625e into main Apr 8, 2026
4 checks passed
@iwillspeak iwillspeak deleted the copilot/switch-alternative-dependency branch April 8, 2026 06:44
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