Skip to content

Commit 400802c

Browse files
committed
Ruby: Add flow summaries for Array/Enumerable methods
1 parent 8c18aaa commit 400802c

File tree

17 files changed

+2875
-83
lines changed

17 files changed

+2875
-83
lines changed

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

Lines changed: 1102 additions & 0 deletions
Large diffs are not rendered by default.

ruby/ql/test/library-tests/dataflow/array-flow/array-flow.expected

Lines changed: 1078 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @kind path-problem
3+
*/
4+
5+
import ruby
6+
import TestUtilities.InlineFlowTest
7+
import PathGraph
8+
9+
class HasFlowTest extends InlineFlowTest {
10+
override DataFlow::Configuration getTaintFlowConfig() { none() }
11+
}
12+
13+
from DataFlow::PathNode source, DataFlow::PathNode sink, DefaultValueFlowConf conf
14+
where conf.hasFlowPath(source, sink)
15+
select sink, source, sink, "$@", source, source.toString()

0 commit comments

Comments
 (0)