Skip to content

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Sep 21, 2025

This call and this call should resolve to <_ as async_std::io::read::ReadExt>::read, but it currently also resolves incorrectly to <_ as futures_util::io::AsyncReadExt>::read and <_ as futures_lite::io::AsyncReadExt>::read (will be fixed by #20282). Flow is only detected because we have a model for <_ as futures_util::io::AsyncReadExt>::read, but we were missing a model for the actual call target, which this PR adds.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Sep 21, 2025
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Sep 21, 2025
@hvitved hvitved marked this pull request as ready for review September 21, 2025 14:22
@hvitved hvitved requested a review from a team as a code owner September 21, 2025 14:22
@hvitved hvitved requested review from Copilot and geoffw0 September 21, 2025 14:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds missing taint flow models for the async_std::io::read::ReadExt::read method to ensure proper dataflow analysis when calls resolve to this specific implementation rather than incorrectly resolving to similar methods from other crates.

  • Adds two taint flow summary models for the ReadExt::read method
  • Ensures dataflow detection works correctly for calls that should resolve to the async-std implementation

Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hvitved hvitved merged commit be260be into github:main Sep 22, 2025
19 checks passed
@hvitved hvitved deleted the rust/missing-model branch September 22, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants