Skip to content

Commit f5329a3

Browse files
committed
PY: fix ql/field-only-used-in-charpred warning
1 parent 94a9b3e commit f5329a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/src/Security/CWE-022/TarSlip.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ class ExcludeTarFilePy extends Sanitizer {
8181

8282
/* Any call to an extractall method */
8383
class ExtractAllSink extends TaintSink {
84-
CallNode call;
85-
8684
ExtractAllSink() {
87-
this = call.getFunction().(AttrNode).getObject("extractall") and
88-
not exists(call.getAnArg())
85+
exists(CallNode call |
86+
this = call.getFunction().(AttrNode).getObject("extractall") and
87+
not exists(call.getAnArg())
88+
)
8989
}
9090

9191
override predicate sinks(TaintKind kind) { kind instanceof OpenTarFile }

0 commit comments

Comments
 (0)