Skip to content

Commit da6d8e1

Browse files
committed
Rust: Lift content reads as taint steps
1 parent 14f9997 commit da6d8e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/TaintTrackingImpl.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ module RustTaintTracking implements InputSig<Location, RustDataFlow> {
4545
// or reference.
4646
// This is needed in order to support taint-tracking configurations where
4747
// the source is a collection or reference.
48-
exists(SingletonContentSet cs | RustDataFlow::readStep(pred, cs, succ) |
49-
cs.getContent() instanceof ElementContent
50-
or
51-
cs.getContent() instanceof ReferenceContent
52-
)
48+
RustDataFlow::readStep(pred, _, succ)
5349
or
5450
exists(FormatArgsExpr format | succ.asExpr() = format |
5551
pred.asExpr() = format.getAnArg().getExpr()

0 commit comments

Comments
 (0)