mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
Java: Add a flow step for Path::toFile in ZipSlip
This commit is contained in:
@@ -79,6 +79,8 @@ predicate filePathStep(ExprNode n1, ExprNode n2) {
|
||||
m.getDeclaringType() instanceof TypeFile and m.hasName("toPath")
|
||||
or
|
||||
m.getDeclaringType() instanceof TypePath and m.hasName("toAbsolutePath")
|
||||
or
|
||||
m.getDeclaringType() instanceof TypePath and m.hasName("toFile")
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user