Skip to content

Commit 402212b

Browse files
committed
C++: Accept query test changes.
1 parent c93a051 commit 402212b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
11
edges
22
| tests.cpp:26:15:26:23 | badSource indirection | tests.cpp:51:12:51:20 | call to badSource indirection |
3-
| tests.cpp:26:32:26:35 | data indirection | tests.cpp:26:15:26:23 | badSource indirection |
4-
| tests.cpp:26:32:26:35 | data indirection | tests.cpp:38:25:38:36 | strncat output argument |
53
| tests.cpp:33:34:33:39 | call to getenv indirection | tests.cpp:38:39:38:49 | environment indirection |
64
| tests.cpp:38:25:38:36 | strncat output argument | tests.cpp:26:15:26:23 | badSource indirection |
7-
| tests.cpp:38:25:38:36 | strncat output argument | tests.cpp:26:15:26:23 | badSource indirection |
8-
| tests.cpp:38:25:38:36 | strncat output argument | tests.cpp:51:22:51:25 | badSource output argument |
95
| tests.cpp:38:39:38:49 | environment indirection | tests.cpp:38:25:38:36 | strncat output argument |
106
| tests.cpp:51:12:51:20 | call to badSource indirection | tests.cpp:53:16:53:19 | data indirection |
11-
| tests.cpp:51:22:51:25 | badSource output argument | tests.cpp:51:22:51:25 | data indirection |
12-
| tests.cpp:51:22:51:25 | data indirection | tests.cpp:26:32:26:35 | data indirection |
13-
| tests.cpp:51:22:51:25 | data indirection | tests.cpp:51:12:51:20 | call to badSource indirection |
147
nodes
158
| tests.cpp:26:15:26:23 | badSource indirection | semmle.label | badSource indirection |
16-
| tests.cpp:26:15:26:23 | badSource indirection | semmle.label | badSource indirection |
17-
| tests.cpp:26:32:26:35 | data indirection | semmle.label | data indirection |
189
| tests.cpp:33:34:33:39 | call to getenv indirection | semmle.label | call to getenv indirection |
1910
| tests.cpp:38:25:38:36 | strncat output argument | semmle.label | strncat output argument |
20-
| tests.cpp:38:25:38:36 | strncat output argument | semmle.label | strncat output argument |
2111
| tests.cpp:38:39:38:49 | environment indirection | semmle.label | environment indirection |
2212
| tests.cpp:51:12:51:20 | call to badSource indirection | semmle.label | call to badSource indirection |
23-
| tests.cpp:51:22:51:25 | badSource output argument | semmle.label | badSource output argument |
24-
| tests.cpp:51:22:51:25 | data indirection | semmle.label | data indirection |
2513
| tests.cpp:53:16:53:19 | data indirection | semmle.label | data indirection |
2614
subpaths
27-
| tests.cpp:51:22:51:25 | data indirection | tests.cpp:26:32:26:35 | data indirection | tests.cpp:26:15:26:23 | badSource indirection | tests.cpp:51:12:51:20 | call to badSource indirection |
2815
#select
2916
| tests.cpp:53:16:53:19 | data | tests.cpp:33:34:33:39 | call to getenv indirection | tests.cpp:53:16:53:19 | data indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string). | tests.cpp:33:34:33:39 | call to getenv indirection | user input (an environment variable) | tests.cpp:38:25:38:36 | strncat output argument | strncat output argument |

cpp/ql/test/query-tests/Security/CWE/CWE-078/semmle/ExecTainted/ExecTainted.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ edges
4545
| test.cpp:186:47:186:54 | filename indirection | test.cpp:188:20:188:24 | flags indirection |
4646
| test.cpp:187:11:187:15 | strncat output argument | test.cpp:188:11:188:17 | strncat output argument |
4747
| test.cpp:187:18:187:25 | filename indirection | test.cpp:187:11:187:15 | strncat output argument |
48-
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:188:11:188:17 | strncat output argument |
49-
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:188:11:188:17 | strncat output argument |
5048
| test.cpp:188:20:188:24 | flags indirection | test.cpp:188:11:188:17 | strncat output argument |
5149
| test.cpp:194:9:194:16 | fread output argument | test.cpp:196:26:196:33 | filename indirection |
5250
| test.cpp:196:10:196:16 | concat output argument | test.cpp:198:32:198:38 | command indirection |

0 commit comments

Comments
 (0)