Skip to content

Commit 32958e9

Browse files
committed
Pretty print models in stored command test
1 parent d066faf commit 32958e9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

go/ql/test/query-tests/Security/CWE-078/StoredCommand.expected

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
#select
2+
| StoredCommand.go:14:22:14:28 | cmdName | StoredCommand.go:11:2:11:27 | ... := ...[0] | StoredCommand.go:14:22:14:28 | cmdName | This command depends on a $@. | StoredCommand.go:11:2:11:27 | ... := ...[0] | stored value |
13
edges
24
| StoredCommand.go:11:2:11:27 | ... := ...[0] | StoredCommand.go:13:2:13:5 | rows | provenance | |
35
| StoredCommand.go:13:2:13:5 | rows | StoredCommand.go:13:12:13:19 | &... | provenance | FunctionModel |
46
| StoredCommand.go:13:12:13:19 | &... | StoredCommand.go:13:12:13:19 | &... | provenance | |
5-
| StoredCommand.go:13:12:13:19 | &... | StoredCommand.go:14:22:14:28 | cmdName | provenance | Sink:MaD:1305 |
7+
| StoredCommand.go:13:12:13:19 | &... | StoredCommand.go:14:22:14:28 | cmdName | provenance | Sink:MaD:1 |
8+
models
9+
| 1 | Sink: os/exec; ; false; Command; ; ; Argument[0]; command-injection; manual |
610
nodes
711
| StoredCommand.go:11:2:11:27 | ... := ...[0] | semmle.label | ... := ...[0] |
812
| StoredCommand.go:13:2:13:5 | rows | semmle.label | rows |
913
| StoredCommand.go:13:12:13:19 | &... | semmle.label | &... |
1014
| StoredCommand.go:14:22:14:28 | cmdName | semmle.label | cmdName |
1115
subpaths
12-
#select
13-
| StoredCommand.go:14:22:14:28 | cmdName | StoredCommand.go:11:2:11:27 | ... := ...[0] | StoredCommand.go:14:22:14:28 | cmdName | This command depends on a $@. | StoredCommand.go:11:2:11:27 | ... := ...[0] | stored value |
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Security/CWE-078/StoredCommand.ql
1+
query: Security/CWE-078/StoredCommand.ql
2+
postprocess: TestUtilities/PrettyPrintModels.ql

0 commit comments

Comments
 (0)