Skip to content

Commit e7c82d7

Browse files
committed
C++: Accept subpaths in tests.
1 parent 24668b2 commit e7c82d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-311/semmle/tests/CleartextTransmission.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ edges
22
| test3.cpp:68:21:68:29 | password1 | test3.cpp:70:15:70:17 | ptr |
33
| test3.cpp:75:15:75:22 | password | test3.cpp:77:15:77:17 | ptr |
44
| test3.cpp:106:20:106:25 | buffer | test3.cpp:108:14:108:19 | buffer |
5+
| test3.cpp:111:28:111:33 | buffer | test3.cpp:113:9:113:14 | buffer |
56
| test3.cpp:120:9:120:23 | global_password | test3.cpp:138:16:138:29 | call to get_global_str |
67
| test3.cpp:128:11:128:18 | password | test3.cpp:106:20:106:25 | buffer |
78
| test3.cpp:132:21:132:22 | call to id | test3.cpp:134:15:134:17 | ptr |
9+
| test3.cpp:132:24:132:32 | password1 | test3.cpp:111:28:111:33 | buffer |
810
| test3.cpp:132:24:132:32 | password1 | test3.cpp:132:21:132:22 | call to id |
911
| test3.cpp:138:16:138:29 | call to get_global_str | test3.cpp:140:15:140:18 | data |
1012
| test3.cpp:151:19:151:26 | password | test3.cpp:153:15:153:20 | buffer |
@@ -20,6 +22,8 @@ nodes
2022
| test3.cpp:95:12:95:19 | password | semmle.label | password |
2123
| test3.cpp:106:20:106:25 | buffer | semmle.label | buffer |
2224
| test3.cpp:108:14:108:19 | buffer | semmle.label | buffer |
25+
| test3.cpp:111:28:111:33 | buffer | semmle.label | buffer |
26+
| test3.cpp:113:9:113:14 | buffer | semmle.label | buffer |
2327
| test3.cpp:120:9:120:23 | global_password | semmle.label | global_password |
2428
| test3.cpp:128:11:128:18 | password | semmle.label | password |
2529
| test3.cpp:132:21:132:22 | call to id | semmle.label | call to id |
@@ -29,6 +33,8 @@ nodes
2933
| test3.cpp:140:15:140:18 | data | semmle.label | data |
3034
| test3.cpp:151:19:151:26 | password | semmle.label | password |
3135
| test3.cpp:153:15:153:20 | buffer | semmle.label | buffer |
36+
subpaths
37+
| test3.cpp:132:24:132:32 | password1 | test3.cpp:111:28:111:33 | buffer | test3.cpp:113:9:113:14 | buffer | test3.cpp:132:21:132:22 | call to id |
3238
#select
3339
| test3.cpp:20:3:20:6 | call to send | test3.cpp:20:15:20:23 | password1 | test3.cpp:20:15:20:23 | password1 | This operation transmits 'password1', which may contain unencrypted sensitive data from $@ | test3.cpp:20:15:20:23 | password1 | password1 |
3440
| test3.cpp:24:3:24:6 | call to send | test3.cpp:24:15:24:23 | password2 | test3.cpp:24:15:24:23 | password2 | This operation transmits 'password2', which may contain unencrypted sensitive data from $@ | test3.cpp:24:15:24:23 | password2 | password2 |

0 commit comments

Comments
 (0)