File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -199,11 +199,13 @@ module Hash {
199
199
}
200
200
}
201
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 ) ) )
202
+ private class AssocUnknownSummary extends SummarizedCallable {
203
+ AssocUnknownSummary ( ) { this = "assoc-unknown-arg" }
204
+
205
+ override MethodCall getACallSimple ( ) {
206
+ result .getMethodName ( ) = "assoc" and
207
+ result .getNumberOfArguments ( ) = 1 and
208
+ not exists ( DataFlow:: Content:: getKnownElementIndex ( result .getArgument ( 0 ) ) )
207
209
}
208
210
209
211
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
You can’t perform that action at this time.
0 commit comments