Skip to content

Commit 53e10e4

Browse files
authored
Merge pull request #2634 from MathiasVP/overrideable-taint-sources
C++: Overrideable taint sources in DefaultTaintTracking
2 parents 5d08a0e + 87c59e0 commit 53e10e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ private predicate userInputInstruction(Instruction instr) {
2828
or
2929
userInputReturned(instr.getConvertedResultExpression())
3030
or
31+
isUserInput(instr.getConvertedResultExpression(), _)
32+
or
3133
instr.getConvertedResultExpression() instanceof EnvironmentRead
3234
or
3335
instr

0 commit comments

Comments
 (0)