зеркало из https://github.com/github/codeql.git
PY: fix ql/field-only-used-in-charpred warning
This commit is contained in:
Родитель
94a9b3e873
Коммит
f5329a3d1b
|
@ -81,11 +81,11 @@ class ExcludeTarFilePy extends Sanitizer {
|
|||
|
||||
/* Any call to an extractall method */
|
||||
class ExtractAllSink extends TaintSink {
|
||||
CallNode call;
|
||||
|
||||
ExtractAllSink() {
|
||||
this = call.getFunction().(AttrNode).getObject("extractall") and
|
||||
not exists(call.getAnArg())
|
||||
exists(CallNode call |
|
||||
this = call.getFunction().(AttrNode).getObject("extractall") and
|
||||
not exists(call.getAnArg())
|
||||
)
|
||||
}
|
||||
|
||||
override predicate sinks(TaintKind kind) { kind instanceof OpenTarFile }
|
||||
|
|
Загрузка…
Ссылка в новой задаче