Skip to content

Commit f07251b

Browse files
committed
C++: Accept another query path change.
1 parent 9727958 commit f07251b

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ edges
1717
| test.cpp:94:11:94:14 | strncat output argument | test.cpp:95:45:95:48 | *path | provenance | |
1818
| test.cpp:94:17:94:24 | *filename | test.cpp:94:11:94:14 | strncat output argument | provenance | Config |
1919
| test.cpp:107:15:107:18 | call to basic_string | test.cpp:108:33:108:36 | *path | provenance | |
20-
| test.cpp:107:20:107:38 | *call to getenv | test.cpp:107:15:107:18 | call to basic_string | provenance | MaD:33404 |
20+
| test.cpp:107:20:107:38 | *call to getenv | test.cpp:107:15:107:18 | call to basic_string | provenance | MaD:3 |
2121
| test.cpp:107:20:107:38 | *call to getenv | test.cpp:108:33:108:36 | *path | provenance | TaintFunction |
2222
| test.cpp:108:31:108:31 | call to operator+ | test.cpp:108:31:108:31 | call to operator+ | provenance | |
2323
| test.cpp:108:31:108:31 | call to operator+ | test.cpp:109:10:109:16 | command | provenance | |
2424
| test.cpp:108:33:108:36 | *path | test.cpp:108:31:108:31 | call to operator+ | provenance | Config |
25-
| test.cpp:109:10:109:16 | command | test.cpp:109:18:109:22 | *call to c_str | provenance | MaD:33449 |
25+
| test.cpp:109:10:109:16 | command | test.cpp:109:18:109:22 | *call to c_str | provenance | MaD:1 |
2626
| test.cpp:114:15:114:18 | call to basic_string | test.cpp:115:19:115:22 | *path | provenance | |
27-
| test.cpp:114:20:114:38 | *call to getenv | test.cpp:114:15:114:18 | call to basic_string | provenance | MaD:33404 |
27+
| test.cpp:114:20:114:38 | *call to getenv | test.cpp:114:15:114:18 | call to basic_string | provenance | MaD:3 |
2828
| test.cpp:114:20:114:38 | *call to getenv | test.cpp:115:19:115:22 | *path | provenance | TaintFunction |
29-
| test.cpp:115:10:115:23 | call to operator+ | test.cpp:115:25:115:29 | *call to c_str | provenance | MaD:33449 |
29+
| test.cpp:115:10:115:23 | call to operator+ | test.cpp:115:25:115:29 | *call to c_str | provenance | MaD:1 |
3030
| test.cpp:115:19:115:22 | *path | test.cpp:115:10:115:23 | call to operator+ | provenance | Config |
3131
| test.cpp:120:15:120:18 | call to basic_string | test.cpp:121:19:121:22 | *path | provenance | |
32-
| test.cpp:120:20:120:38 | *call to getenv | test.cpp:120:15:120:18 | call to basic_string | provenance | MaD:33404 |
32+
| test.cpp:120:20:120:38 | *call to getenv | test.cpp:120:15:120:18 | call to basic_string | provenance | MaD:3 |
3333
| test.cpp:120:20:120:38 | *call to getenv | test.cpp:121:19:121:22 | *path | provenance | TaintFunction |
34-
| test.cpp:121:17:121:17 | call to operator+ | test.cpp:121:10:121:30 | *call to data | provenance | MaD:33447 |
34+
| test.cpp:121:17:121:17 | call to operator+ | test.cpp:121:10:121:30 | *call to data | provenance | MaD:2 |
3535
| test.cpp:121:19:121:22 | *path | test.cpp:121:17:121:17 | call to operator+ | provenance | Config |
3636
| test.cpp:141:9:141:11 | fread output argument | test.cpp:143:31:143:33 | *str | provenance | |
3737
| test.cpp:143:11:143:17 | sprintf output argument | test.cpp:144:10:144:16 | *command | provenance | |
@@ -93,6 +93,10 @@ edges
9393
| test.cpp:248:5:248:10 | *call to getenv | test.cpp:245:11:245:17 | sprintf output argument | provenance | Config |
9494
| test.cpp:259:13:259:18 | strncat output argument | test.cpp:261:10:261:15 | *buffer | provenance | |
9595
| test.cpp:259:21:259:35 | *call to getenv | test.cpp:259:13:259:18 | strncat output argument | provenance | Config |
96+
models
97+
| 1 | Summary: std; basic_string; true; c_str; ; ; Argument[-1]; ReturnValue[*]; value; manual |
98+
| 2 | Summary: std; basic_string; true; data; ; ; Argument[-1]; ReturnValue[*]; value; manual |
99+
| 3 | Summary: std; basic_string<CharT,Traits,Allocator>; true; basic_string; (const CharT *,const Allocator &); ; Argument[*0]; Argument[-1]; value; manual |
96100
nodes
97101
| test.cpp:15:27:15:30 | **argv | semmle.label | **argv |
98102
| test.cpp:16:20:16:26 | *access to array | semmle.label | *access to array |

0 commit comments

Comments
 (0)