Java: Taint tracking through String.replace(all)?

This commit is contained in:
lcartey@github.com
2020-05-17 17:59:06 +01:00
parent 7d555a7467
commit c59042f9c3

View File

@@ -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 {