Python: Add .copy() as a copy step

This commit is contained in:
Taus
2024-02-22 13:09:27 +00:00
parent 5125973f9b
commit f1392712ee
3 changed files with 3 additions and 11 deletions

View File

@@ -195,6 +195,8 @@ predicate copyStep(DataFlow::CfgNode nodeFrom, DataFlow::CfgNode nodeTo) {
call = API::moduleImport("copy").getMember(["copy", "deepcopy"]).getACall() and
call.getArg(0) = nodeFrom
)
or
nodeTo.(DataFlow::MethodCallNode).calls(nodeFrom, "copy")
}
/**