Java: model Object.clone

This commit is contained in:
Arthur Baars
2020-07-09 14:50:29 +02:00
parent 6ef7288848
commit e183171fea
3 changed files with 7 additions and 2 deletions

View File

@@ -292,6 +292,8 @@ private predicate qualifierToMethodStep(Expr tracked, MethodAccess sink) {
* Methods that return tainted data when called on tainted data.
*/
private predicate taintPreservingQualifierToMethod(Method m) {
m instanceof CloneMethod
or
m.getDeclaringType() instanceof TypeString and
(
m.getName() = "concat" or