Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e5729c

Browse files
committed
C++: Fix typo and adjust violation message wording.
1 parent 9e193f6 commit 6e5729c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cpp/ql/src/Security/CWE/CWE-497/PotentiallyExposedSystemData.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/*
1616
* These queries are closely related:
1717
* - `cpp/system-data-exposure`, which flags exposure of system information
18-
* to a remote sink (i.e. focusses on qualiy of the sink).
18+
* to a remote sink (i.e. focusses on quality of the sink).
1919
* - `cpp/potential-system-data-exposure`, which flags on exposure of the most
2020
* sensitive information to a local sink (i.e. focusses on quality of the
2121
* sensitive information).
@@ -48,5 +48,5 @@ from
4848
DataFlow::PathNode sink
4949
where config.hasFlowPath(source, sink)
5050
select sink, source, sink,
51-
"This operation potentially exposes sensitive system data (a password or token) from $@.", source,
51+
"This operation potentially exposes sensitive system data from $@.", source,
5252
source.getNode().toString()

cpp/ql/test/query-tests/Security/CWE/CWE-497/SAMATE/PotentiallyExposedSystemData.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ nodes
77
| tests.c:70:70:70:77 | array to pointer conversion | semmle.label | array to pointer conversion |
88
subpaths
99
#select
10-
| tests.c:70:70:70:77 | array to pointer conversion | tests.c:57:21:57:28 | array to pointer conversion | tests.c:70:70:70:77 | array to pointer conversion | This operation potentially exposes sensitive system data (a password or token) from $@. | tests.c:57:21:57:28 | array to pointer conversion | array to pointer conversion |
11-
| tests.c:70:70:70:77 | array to pointer conversion | tests.c:57:21:57:28 | password | tests.c:70:70:70:77 | array to pointer conversion | This operation potentially exposes sensitive system data (a password or token) from $@. | tests.c:57:21:57:28 | password | password |
10+
| tests.c:70:70:70:77 | array to pointer conversion | tests.c:57:21:57:28 | array to pointer conversion | tests.c:70:70:70:77 | array to pointer conversion | This operation potentially exposes sensitive system data from $@. | tests.c:57:21:57:28 | array to pointer conversion | array to pointer conversion |
11+
| tests.c:70:70:70:77 | array to pointer conversion | tests.c:57:21:57:28 | password | tests.c:70:70:70:77 | array to pointer conversion | This operation potentially exposes sensitive system data from $@. | tests.c:57:21:57:28 | password | password |

0 commit comments

Comments
 (0)