mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Java: Taint tracking through String.replace(all)?
This commit is contained in:
@@ -387,6 +387,8 @@ private predicate taintPreservingQualifierToMethod(Method m) {
|
||||
m.getName().regexpMatch("get|toArray|subList|spliterator|set|iterator|listIterator") or
|
||||
(m.getName().regexpMatch("remove") and not m.getReturnType() instanceof BooleanType)
|
||||
)
|
||||
or
|
||||
m instanceof StringReplaceMethod
|
||||
}
|
||||
|
||||
private class StringReplaceMethod extends Method {
|
||||
|
||||
Reference in New Issue
Block a user