Skip to content

Commit b6ef25a

Browse files
committed
1 parent 621a77c commit b6ef25a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module ExternallyControlledFormatStringConfig implements DataFlow::ConfigSig {
2525
}
2626

2727
predicate observeDiffInformedIncrementalMode() { any() }
28+
29+
Location getASelectedSinkLocation(DataFlow::Node sink) {
30+
exists(StringFormat formatCall | result = formatCall.getFormatArgument().getLocation() |
31+
sink.asExpr() = formatCall.getFormatArgument()
32+
)
33+
}
2834
}
2935

3036
/**

0 commit comments

Comments
 (0)