Skip to content

Commit 71bcae0

Browse files
committed
Java: Avoid generating new regex-use sinks.
1 parent ff928bb commit 71bcae0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,7 @@ string asInputArgument(DataFlow::Node source) {
232232
* Holds if `kind` is a relevant sink kind for creating sink models.
233233
*/
234234
bindingset[kind]
235-
predicate isRelevantSinkKind(string kind) { not kind = "logging" }
235+
predicate isRelevantSinkKind(string kind) {
236+
not kind = "logging" and
237+
not kind.matches("regex-use%")
238+
}

0 commit comments

Comments
 (0)