Skip to content

Commit f6516db

Browse files
committed
Ruby: correct preservesValue in AccessLocalsKeySummary
1 parent ab72301 commit f6516db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/frameworks/Rails.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,6 @@ private class AccessLocalsKeySummary extends SummarizedCallable {
371371
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
372372
input = "SyntheticGlobal[" + glob + "].Element[:" + methodName + "]" and
373373
output = "ReturnValue" and
374-
preservesValue = false
374+
preservesValue = true
375375
}
376376
}

0 commit comments

Comments
 (0)