Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a7b21 commit 0592c8bCopy full SHA for 0592c8b
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/core/Hash.qll
@@ -199,11 +199,13 @@ module Hash {
199
}
200
201
202
- private class AssocUnknownSummary extends AssocSummary {
203
- AssocUnknownSummary() {
204
- this = "assoc" and
205
- mc.getNumberOfArguments() = 1 and
206
- not exists(DataFlow::Content::getKnownElementIndex(mc.getArgument(0)))
+ private class AssocUnknownSummary extends SummarizedCallable {
+ AssocUnknownSummary() { this = "assoc-unknown-arg" }
+
+ override MethodCall getACallSimple() {
+ result.getMethodName() = "assoc" and
207
+ result.getNumberOfArguments() = 1 and
208
+ not exists(DataFlow::Content::getKnownElementIndex(result.getArgument(0)))
209
210
211
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
0 commit comments