mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
fix all ql/counting-to-zero in some languages
This commit is contained in:
@@ -85,7 +85,7 @@ class ExtractAllSink extends TaintSink {
|
||||
|
||||
ExtractAllSink() {
|
||||
this = call.getFunction().(AttrNode).getObject("extractall") and
|
||||
count(call.getAnArg()) = 0
|
||||
not exists(call.getAnArg())
|
||||
}
|
||||
|
||||
override predicate sinks(TaintKind kind) { kind instanceof OpenTarFile }
|
||||
|
||||
@@ -194,7 +194,7 @@ predicate function_object_consistency(string clsname, string problem, string wha
|
||||
exists(FunctionObject func | clsname = func.getAQlClass() |
|
||||
what = func.getName() and
|
||||
(
|
||||
count(func.descriptiveString()) = 0 and problem = "no descriptiveString()"
|
||||
not exists(func.descriptiveString()) and problem = "no descriptiveString()"
|
||||
or
|
||||
exists(int c | c = strictcount(func.descriptiveString()) and c > 1 |
|
||||
problem = c + "descriptiveString()s"
|
||||
|
||||
Reference in New Issue
Block a user