Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7005d53

Browse files
committed
Ruby: manually rewrite DigSummary access path
1 parent 6dbeb81 commit 7005d53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ruby/ql/lib/codeql/ruby/frameworks/core

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ module Array {
657657
strictconcat(int i |
658658
i in [0 .. dig.getNumberOfArguments() - 1]
659659
|
660-
"ArrayElement" + buildDigInputSpecComponent(dig, i) + " of " order by i desc
660+
".ArrayElement" + buildDigInputSpecComponent(dig, i) order by i
661661
)
662662
}
663663

@@ -677,7 +677,7 @@ module Array {
677677
override MethodCall getACall() { result = dig }
678678

679679
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
680-
input = buildDigInputSpec(dig) + "Receiver" and
680+
input = "Receiver" + buildDigInputSpec(dig) and
681681
output = "ReturnValue" and
682682
preservesValue = true
683683
}

0 commit comments

Comments
 (0)