зеркало из https://github.com/github/codeql.git
use `test-sink` for sinks in the MaD test
This commit is contained in:
Родитель
aef592fec8
Коммит
ce21d7e5a8
|
@ -18,23 +18,23 @@ isSink
|
|||
| test.py:10:8:10:22 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:11:8:11:30 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:12:8:12:34 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:16:11:16:13 | ControlFlowNode for one | test-source |
|
||||
| test.py:17:19:17:21 | ControlFlowNode for two | test-source |
|
||||
| test.py:17:24:17:28 | ControlFlowNode for three | test-source |
|
||||
| test.py:17:31:17:34 | ControlFlowNode for four | test-source |
|
||||
| test.py:18:37:18:40 | ControlFlowNode for five | test-source |
|
||||
| test.py:19:21:19:26 | ControlFlowNode for second | test-source |
|
||||
| test.py:30:21:30:23 | ControlFlowNode for one | test-source |
|
||||
| test.py:32:22:32:24 | ControlFlowNode for one | test-source |
|
||||
| test.py:32:27:32:29 | ControlFlowNode for two | test-source |
|
||||
| test.py:33:22:33:24 | ControlFlowNode for one | test-source |
|
||||
| test.py:33:27:33:29 | ControlFlowNode for two | test-source |
|
||||
| test.py:33:32:33:36 | ControlFlowNode for three | test-source |
|
||||
| test.py:57:27:57:33 | ControlFlowNode for arg_pos | test-source |
|
||||
| test.py:66:17:66:20 | ControlFlowNode for arg1 | test-source |
|
||||
| test.py:66:23:66:26 | ControlFlowNode for arg2 | test-source |
|
||||
| test.py:66:34:66:43 | ControlFlowNode for namedThing | test-source |
|
||||
| test.py:67:34:67:44 | ControlFlowNode for secondNamed | test-source |
|
||||
| test.py:16:11:16:13 | ControlFlowNode for one | test-sink |
|
||||
| test.py:17:19:17:21 | ControlFlowNode for two | test-sink |
|
||||
| test.py:17:24:17:28 | ControlFlowNode for three | test-sink |
|
||||
| test.py:17:31:17:34 | ControlFlowNode for four | test-sink |
|
||||
| test.py:18:37:18:40 | ControlFlowNode for five | test-sink |
|
||||
| test.py:19:21:19:26 | ControlFlowNode for second | test-sink |
|
||||
| test.py:30:21:30:23 | ControlFlowNode for one | test-sink |
|
||||
| test.py:32:22:32:24 | ControlFlowNode for one | test-sink |
|
||||
| test.py:32:27:32:29 | ControlFlowNode for two | test-sink |
|
||||
| test.py:33:22:33:24 | ControlFlowNode for one | test-sink |
|
||||
| test.py:33:27:33:29 | ControlFlowNode for two | test-sink |
|
||||
| test.py:33:32:33:36 | ControlFlowNode for three | test-sink |
|
||||
| test.py:57:27:57:33 | ControlFlowNode for arg_pos | test-sink |
|
||||
| test.py:66:17:66:20 | ControlFlowNode for arg1 | test-sink |
|
||||
| test.py:66:23:66:26 | ControlFlowNode for arg2 | test-sink |
|
||||
| test.py:66:34:66:43 | ControlFlowNode for namedThing | test-sink |
|
||||
| test.py:67:34:67:44 | ControlFlowNode for secondNamed | test-sink |
|
||||
| test.py:71:8:71:39 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:72:8:72:47 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:76:22:76:22 | ControlFlowNode for x | test-sink |
|
||||
|
@ -46,9 +46,9 @@ isSink
|
|||
| test.py:85:8:85:53 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:86:8:86:60 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:87:8:87:67 | ControlFlowNode for Attribute() | test-sink |
|
||||
| test.py:89:21:89:23 | ControlFlowNode for one | test-source |
|
||||
| test.py:90:25:90:27 | ControlFlowNode for one | test-source |
|
||||
| test.py:98:6:98:9 | ControlFlowNode for baz2 | test-source |
|
||||
| test.py:89:21:89:23 | ControlFlowNode for one | test-sink |
|
||||
| test.py:90:25:90:27 | ControlFlowNode for one | test-sink |
|
||||
| test.py:98:6:98:9 | ControlFlowNode for baz2 | test-sink |
|
||||
isSource
|
||||
| test.py:3:5:3:15 | ControlFlowNode for getSource() | test-source |
|
||||
| test.py:9:8:9:14 | ControlFlowNode for alias() | test-source |
|
||||
|
|
|
@ -36,21 +36,21 @@ class Sinks extends ModelInput::SinkModelCsv {
|
|||
[
|
||||
"testlib;;Member[mySink].Argument[0,sinkName:];test-sink",
|
||||
// testing argument syntax
|
||||
"testlib;;Member[Args].Member[arg0].Argument[0];test-source", //
|
||||
"testlib;;Member[Args].Member[arg1to3].Argument[1..3];test-source", //
|
||||
"testlib;;Member[Args].Member[lastarg].Argument[N-1];test-source", //
|
||||
"testlib;;Member[Args].Member[nonFist].Argument[1..];test-source", //
|
||||
"testlib;;Member[Args].Member[arg0].Argument[0];test-sink", //
|
||||
"testlib;;Member[Args].Member[arg1to3].Argument[1..3];test-sink", //
|
||||
"testlib;;Member[Args].Member[lastarg].Argument[N-1];test-sink", //
|
||||
"testlib;;Member[Args].Member[nonFist].Argument[1..];test-sink", //
|
||||
// callsite filter.
|
||||
"testlib;;Member[CallFilter].Member[arityOne].WithArity[1].Argument[any];test-source", //
|
||||
"testlib;;Member[CallFilter].Member[twoOrMore].WithArity[2..].Argument[0..];test-source", //
|
||||
"testlib;;Member[CallFilter].Member[arityOne].WithArity[1].Argument[any];test-sink", //
|
||||
"testlib;;Member[CallFilter].Member[twoOrMore].WithArity[2..].Argument[0..];test-sink", //
|
||||
// testing non-positional arguments
|
||||
"testlib;;Member[ArgPos].Instance.Member[self_thing].Argument[self];test-source", //
|
||||
"testlib;;Member[ArgPos].Instance.Member[self_thing].Argument[self];test-sink", //
|
||||
// any argument
|
||||
"testlib;;Member[ArgPos].Member[anyParam].Argument[any];test-source", //
|
||||
"testlib;;Member[ArgPos].Member[anyNamed].Argument[any-named];test-source", //
|
||||
"testlib;;Member[ArgPos].Member[anyParam].Argument[any];test-sink", //
|
||||
"testlib;;Member[ArgPos].Member[anyNamed].Argument[any-named];test-sink", //
|
||||
// testing package syntax
|
||||
"foo1.bar;;Member[baz1].Argument[any];test-source", //
|
||||
"foo2;;Member[bar].Member[baz2].Argument[any];test-source", //
|
||||
"foo1.bar;;Member[baz1].Argument[any];test-sink", //
|
||||
"foo2;;Member[bar].Member[baz2].Argument[any];test-sink", //
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче