Skip to content

Commit 76d731a

Browse files
author
Stephan Brandauer
committed
improve CannotBeTaintedCharacteristic
1 parent 9a04124 commit 76d731a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ private class CannotBeTaintedCharacteristic extends CharacteristicsImpl::LikelyN
345345
* Holds if the node `n` is known as the predecessor in a modeled flow step.
346346
*/
347347
private predicate isKnownOutNodeForStep(Endpoint e) {
348+
e.asExpr() instanceof Call or // we just assume flow in that case
348349
TaintTracking::localTaintStep(_, e) or
349350
FlowSummaryImpl::Private::Steps::summaryThroughStepValue(_, e, _) or
350351
FlowSummaryImpl::Private::Steps::summaryThroughStepTaint(_, e, _) or

0 commit comments

Comments
 (0)