Skip to content

Commit 2f95af8

Browse files
committed
Ruby: Remove self edges
1 parent 7323d4e commit 2f95af8

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ module LocalFlow {
9696
exists(BasicBlock bb, int i |
9797
lastRefBeforeRedefExt(def, bb, i, next.getDefinitionExt()) and
9898
def = nodeFrom.getDefinitionExt() and
99-
def.definesAt(_, bb, i, _)
99+
def.definesAt(_, bb, i, _) and
100+
nodeFrom != next
100101
)
101102
}
102103

ruby/ql/test/library-tests/ast/CONSISTENCY/DataFlowConsistency.expected

Lines changed: 0 additions & 13 deletions
This file was deleted.

ruby/ql/test/library-tests/ast/calls/CONSISTENCY/DataFlowConsistency.expected

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)