Skip to content

Commit f831da9

Browse files
paldepindCopilot
andcommitted
Rust: Preserve element flow through blanket Into conversions
The regenerated exact summary for <_ as core::convert::Into>::into models only whole-value taint. Exact generated summaries take precedence over the existing inherited Into trait summaries, suppressing their element and referenced-element flows. Add exact manual summaries for both element paths so array and slice conversions continue to carry taint, preserving existing hardcoded cryptographic-key alerts. Retain the whole-value taint summary because the manual summaries replace the generated summary set. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 786f0f17-6512-4098-8c92-7721e13b78b2
1 parent 1754bc3 commit f831da9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎rust/ql/lib/codeql/rust/frameworks/stdlib/core.model.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
// Conversions
9292
["<core::convert::Into>::into", "Argument[self].Element", "ReturnValue.Element", "taint", "manual"],
9393
["<core::convert::Into>::into", "Argument[self].Reference.Element", "ReturnValue.Element", "taint", "manual"],
94+
["<_ as core::convert::Into>::into", "Argument[self]", "ReturnValue", "taint", "manual"],
95+
["<_ as core::convert::Into>::into", "Argument[self].Element", "ReturnValue.Element", "taint", "manual"],
96+
["<_ as core::convert::Into>::into", "Argument[self].Reference.Element", "ReturnValue.Element", "taint", "manual"],
9497
// From
9598
["<core::convert::From>::from", "Argument[0]", "ReturnValue", "taint", "manual"],
9699
// Iterator

0 commit comments

Comments
 (0)