Skip to content

Commit 3906a19

Browse files
committed
Merge branch 'mathiasvp/replace-ast-with-ir-use-usedataflow' into no-taint-indirect-direct-conflation
2 parents 7bb8065 + f9c724d commit 3906a19

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/new/TaintTracking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* `TaintTracking::localTaintStep` with arguments of type `DataFlow::Node`.
1616
*/
1717

18-
import semmle.code.cpp.ir.dataflow.DataFlow
19-
import semmle.code.cpp.ir.dataflow.DataFlow2
18+
import semmle.code.cpp.dataflow.new.DataFlow
19+
import semmle.code.cpp.dataflow.new.DataFlow2
2020

2121
/**
2222
* Provides classes for performing local (intra-procedural) and

cpp/ql/lib/semmle/code/cpp/models/implementations/Gets.qll

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ private class GetsFunction extends DataFlowFunction, ArrayFunction, AliasFunctio
9797
}
9898

9999
override predicate hasLocalFlowSource(FunctionOutput output, string description) {
100-
output.isParameterDeref(0) and
101-
description = "string read by " + this.getName()
102-
or
103-
output.isReturnValue() and
100+
(
101+
output.isParameterDeref(0) or
102+
output.isReturnValue() or
103+
output.isReturnValueDeref()
104+
) and
104105
description = "string read by " + this.getName()
105106
}
106107

0 commit comments

Comments
 (0)