We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f012d5 commit 50a7b21Copy full SHA for 50a7b21
ruby/ql/lib/codeql/ruby/frameworks/core/Array.qll
@@ -583,7 +583,8 @@ module Array {
583
584
private class DeleteUnknownSummary extends DeleteSummary {
585
DeleteUnknownSummary() {
586
- this = "delete" and
+ // Note: take care to avoid a name clash with the "delete" summary from String.qll
587
+ this = "delete-unknown-key" and
588
not exists(DataFlow::Content::getKnownElementIndex(mc.getArgument(0)))
589
}
590
0 commit comments