Skip to content

Commit da933fb

Browse files
committed
Sync ExternallyControlledFormatStringLocalQuery
1 parent f188632 commit da933fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/security/ExternallyControlledFormatStringLocalQuery.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module ExternallyControlledFormatStringLocalConfig implements DataFlow::ConfigSi
1111
predicate isSink(DataFlow::Node sink) {
1212
sink.asExpr() = any(StringFormat formatCall).getFormatArgument()
1313
}
14+
15+
predicate isBarrier(DataFlow::Node node) {
16+
node.getType() instanceof NumericType or node.getType() instanceof BooleanType
17+
}
1418
}
1519

1620
/**

0 commit comments

Comments
 (0)