Skip to content

Commit 9e28502

Browse files
committed
Comment modif + remove redundant cast
1 parent ec82d61 commit 9e28502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/experimental/Security/UnsafeUnpackQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ API::Node tarfileOpen() {
2424
}
2525

2626
/**
27-
* Handle the previous three cases, plus the use of `closing` in the previous cases
27+
* A class for handling the previous three cases, plus the use of `closing` in with the previous cases
2828
*/
2929
class AllTarfileOpens extends API::CallNode {
3030
AllTarfileOpens() {
@@ -153,7 +153,7 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
153153
// Open a file for access using builtin
154154
exists(API::CallNode cn |
155155
cn = API::builtin("open").getACall() and
156-
nodeTo = cn.(API::CallNode).getArg(0) and
156+
nodeTo = cn.getArg(0) and
157157
cn.flowsTo(nodeFrom)
158158
)
159159
or

0 commit comments

Comments
 (0)