Skip to content

Commit b2b9a74

Browse files
committed
C++: Accept changes in CleartextFileWrite test following aliased SSA removal
1 parent 2e3c0a0 commit b2b9a74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ nodes
1818
| test2.cpp:65:31:65:34 | cpy1 | semmle.label | cpy1 |
1919
| test2.cpp:72:15:72:24 | password | semmle.label | password |
2020
| test2.cpp:73:30:73:32 | *buf | semmle.label | *buf |
21+
| test2.cpp:91:50:91:63 | passwd_config2 | semmle.label | passwd_config2 |
2122
| test2.cpp:98:45:98:52 | password | semmle.label | password |
2223
| test2.cpp:99:27:99:32 | *buffer | semmle.label | *buffer |
2324
| test.cpp:45:9:45:19 | thePassword | semmle.label | thePassword |
@@ -36,6 +37,7 @@ subpaths
3637
| test2.cpp:57:2:57:8 | call to fprintf | test2.cpp:57:39:57:49 | call to getPassword | test2.cpp:57:39:57:49 | call to getPassword | This write into file 'log' may contain unencrypted data from $@. | test2.cpp:57:39:57:49 | call to getPassword | this source. |
3738
| test2.cpp:65:3:65:9 | call to fprintf | test2.cpp:62:18:62:25 | password | test2.cpp:65:31:65:34 | cpy1 | This write into file 'log' may contain unencrypted data from $@. | test2.cpp:62:18:62:25 | password | this source. |
3839
| test2.cpp:73:3:73:9 | call to fprintf | test2.cpp:72:15:72:24 | password | test2.cpp:73:30:73:32 | *buf | This write into file 'log' may contain unencrypted data from $@. | test2.cpp:72:17:72:24 | password | this source. |
40+
| test2.cpp:91:4:91:10 | call to fprintf | test2.cpp:91:50:91:63 | passwd_config2 | test2.cpp:91:50:91:63 | passwd_config2 | This write into file 'log' may contain unencrypted data from $@. | test2.cpp:91:50:91:63 | passwd_config2 | this source. |
3941
| test2.cpp:99:3:99:9 | call to fprintf | test2.cpp:98:45:98:52 | password | test2.cpp:99:27:99:32 | *buffer | This write into file 'log' may contain unencrypted data from $@. | test2.cpp:98:45:98:52 | password | this source. |
4042
| test.cpp:45:3:45:7 | call to fputs | test.cpp:45:9:45:19 | thePassword | test.cpp:45:9:45:19 | thePassword | This write into file 'file' may contain unencrypted data from $@. | test.cpp:45:9:45:19 | thePassword | this source. |
4143
| test.cpp:70:35:70:35 | call to operator<< | test.cpp:70:38:70:48 | thePassword | test.cpp:70:38:70:48 | thePassword | This write into file 'mystream' may contain unencrypted data from $@. | test.cpp:70:38:70:48 | thePassword | this source. |

0 commit comments

Comments
 (0)