Skip to content

Commit cc8b581

Browse files
committed
C++: Accept test changes.
1 parent cca77ed commit cc8b581

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ edges
2020
| test.cpp:93:17:93:24 | filename indirection | test.cpp:93:11:93:14 | strncat output argument |
2121
| test.cpp:93:17:93:24 | filename indirection | test.cpp:93:11:93:14 | strncat output argument |
2222
| test.cpp:106:20:106:25 | call to getenv | test.cpp:107:33:107:36 | path indirection |
23+
| test.cpp:107:31:107:31 | call to operator+ | test.cpp:108:18:108:22 | call to c_str indirection |
24+
| test.cpp:107:33:107:36 | path indirection | test.cpp:107:31:107:31 | call to operator+ |
25+
| test.cpp:107:33:107:36 | path indirection | test.cpp:107:31:107:31 | call to operator+ |
2326
| test.cpp:113:20:113:25 | call to getenv | test.cpp:114:19:114:22 | path indirection |
27+
| test.cpp:114:17:114:17 | Call | test.cpp:114:25:114:29 | call to c_str indirection |
28+
| test.cpp:114:19:114:22 | path indirection | test.cpp:114:17:114:17 | Call |
29+
| test.cpp:114:19:114:22 | path indirection | test.cpp:114:17:114:17 | Call |
2430
| test.cpp:119:20:119:25 | call to getenv | test.cpp:120:19:120:22 | path indirection |
31+
| test.cpp:120:17:120:17 | Call | test.cpp:120:10:120:30 | call to data indirection |
32+
| test.cpp:120:19:120:22 | path indirection | test.cpp:120:17:120:17 | Call |
33+
| test.cpp:120:19:120:22 | path indirection | test.cpp:120:17:120:17 | Call |
2534
| test.cpp:140:9:140:11 | fread output argument | test.cpp:142:31:142:33 | str indirection |
2635
| test.cpp:142:11:142:17 | sprintf output argument | test.cpp:143:10:143:16 | command indirection |
2736
| test.cpp:142:31:142:33 | str indirection | test.cpp:142:11:142:17 | sprintf output argument |
@@ -48,10 +57,16 @@ nodes
4857
| test.cpp:93:17:93:24 | filename indirection | semmle.label | filename indirection |
4958
| test.cpp:94:45:94:48 | path indirection | semmle.label | path indirection |
5059
| test.cpp:106:20:106:25 | call to getenv | semmle.label | call to getenv |
60+
| test.cpp:107:31:107:31 | call to operator+ | semmle.label | call to operator+ |
5161
| test.cpp:107:33:107:36 | path indirection | semmle.label | path indirection |
62+
| test.cpp:108:18:108:22 | call to c_str indirection | semmle.label | call to c_str indirection |
5263
| test.cpp:113:20:113:25 | call to getenv | semmle.label | call to getenv |
64+
| test.cpp:114:17:114:17 | Call | semmle.label | Call |
5365
| test.cpp:114:19:114:22 | path indirection | semmle.label | path indirection |
66+
| test.cpp:114:25:114:29 | call to c_str indirection | semmle.label | call to c_str indirection |
5467
| test.cpp:119:20:119:25 | call to getenv | semmle.label | call to getenv |
68+
| test.cpp:120:10:120:30 | call to data indirection | semmle.label | call to data indirection |
69+
| test.cpp:120:17:120:17 | Call | semmle.label | Call |
5570
| test.cpp:120:19:120:22 | path indirection | semmle.label | path indirection |
5671
| test.cpp:140:9:140:11 | fread output argument | semmle.label | fread output argument |
5772
| test.cpp:142:11:142:17 | sprintf output argument | semmle.label | sprintf output argument |
@@ -64,4 +79,7 @@ subpaths
6479
| test.cpp:65:10:65:16 | command | test.cpp:62:9:62:16 | fread output argument | test.cpp:65:10:65:16 | command indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string) | test.cpp:62:9:62:16 | fread output argument | user input (String read by fread) | test.cpp:64:11:64:17 | strncat output argument | strncat output argument |
6580
| test.cpp:85:32:85:38 | command | test.cpp:82:9:82:16 | fread output argument | test.cpp:85:32:85:38 | command indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to execl | test.cpp:82:9:82:16 | fread output argument | user input (String read by fread) | test.cpp:84:11:84:17 | strncat output argument | strncat output argument |
6681
| test.cpp:94:45:94:48 | path | test.cpp:91:9:91:16 | fread output argument | test.cpp:94:45:94:48 | path indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to execl | test.cpp:91:9:91:16 | fread output argument | user input (String read by fread) | test.cpp:93:11:93:14 | strncat output argument | strncat output argument |
82+
| test.cpp:108:18:108:22 | call to c_str | test.cpp:106:20:106:25 | call to getenv | test.cpp:108:18:108:22 | call to c_str indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string) | test.cpp:106:20:106:25 | call to getenv | user input (an environment variable) | test.cpp:107:31:107:31 | call to operator+ | call to operator+ |
83+
| test.cpp:114:25:114:29 | call to c_str | test.cpp:113:20:113:25 | call to getenv | test.cpp:114:25:114:29 | call to c_str indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string) | test.cpp:113:20:113:25 | call to getenv | user input (an environment variable) | test.cpp:114:17:114:17 | Call | Call |
84+
| test.cpp:120:25:120:28 | call to data | test.cpp:119:20:119:25 | call to getenv | test.cpp:120:10:120:30 | call to data indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string) | test.cpp:119:20:119:25 | call to getenv | user input (an environment variable) | test.cpp:120:17:120:17 | Call | Call |
6785
| test.cpp:143:10:143:16 | command | test.cpp:140:9:140:11 | fread output argument | test.cpp:143:10:143:16 | command indirection | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string) | test.cpp:140:9:140:11 | fread output argument | user input (String read by fread) | test.cpp:142:11:142:17 | sprintf output argument | sprintf output argument |

0 commit comments

Comments
 (0)