Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ed4808

Browse files
Sim4n6yoff
andauthored
Update python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql
Yes, definitely Co-authored-by: yoff <[email protected]>
1 parent 10d6ebf commit 0ed4808

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python/ql/src/experimental/Security/CWE-022bis/UnsafeUnpack.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
6969
// Writing the response data to the archive
7070
exists(Stdlib::FileLikeObject::InstanceSource is, Node f, MethodCallNode mc |
7171
is.flowsTo(f) and
72-
mc.getMethodName() = "write" and
73-
f = mc.getObject() and
72+
mc.calls(f, "write")
7473
nodeFrom = mc.getArg(0) and
7574
nodeTo = is.(CallCfgNode).getArg(0)
7675
)

0 commit comments

Comments
 (0)