Skip to content

Commit 50a7b21

Browse files
committed
Ruby: fix a name clash for summaries called "delete"
1 parent 6f012d5 commit 50a7b21

File tree

1 file changed

+2
-1
lines changed
  • ruby/ql/lib/codeql/ruby/frameworks/core

1 file changed

+2
-1
lines changed

ruby/ql/lib/codeql/ruby/frameworks/core/Array.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ module Array {
583583

584584
private class DeleteUnknownSummary extends DeleteSummary {
585585
DeleteUnknownSummary() {
586-
this = "delete" and
586+
// Note: take care to avoid a name clash with the "delete" summary from String.qll
587+
this = "delete-unknown-key" and
587588
not exists(DataFlow::Content::getKnownElementIndex(mc.getArgument(0)))
588589
}
589590

0 commit comments

Comments
 (0)