You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let file2 = tokio::fs::File::open("another_file.txt").await?;// $ Alert[rust/summary/taint-sources]
639
639
letmut reader = file1.chain(file2);
640
640
reader.read_to_string(&mut buffer).await?;
641
-
sink(&buffer);// $ MISSING: hasTaintFlow="file.txt" hasTaintFlow="another_file.txt" -- we cannot resolve the `chain` and `read_to_string` calls above, which comes from `impl<R: AsyncRead + ?Sized> AsyncReadExt for R {}` in `async_read_ext.rs`
let file1 = tokio::fs::File::open("file.txt").await?;// $ Alert[rust/summary/taint-sources]
647
647
letmut reader = file1.take(100);
648
648
reader.read_to_string(&mut buffer).await?;
649
-
sink(&buffer);// $ MISSING: hasTaintFlow="file.txt" -- we cannot resolve the `take` and `read_to_string` calls above, which comes from `impl<R: AsyncRead + ?Sized> AsyncReadExt for R {}` in `async_read_ext.rs`
0 commit comments