Skip to content

Commit 5ee74d2

Browse files
authored
Merge pull request github#5822 from MathiasVP/more-cwe-tags-in-code-scanning
C++: Add more CWE tags to queries in the Code Scanning suite
2 parents b160bad + d579341 commit 5ee74d2

File tree

7 files changed

+10
-1
lines changed

7 files changed

+10
-1
lines changed

cpp/ql/src/Likely Bugs/Arithmetic/SignedOverflowCheck.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* @id cpp/signed-overflow-check
1010
* @tags correctness
1111
* security
12+
* external/cwe/cwe-128
13+
* external/cwe/cwe-190
1214
*/
1315

1416
import cpp

cpp/ql/src/Likely Bugs/Conversion/CastArrayPointerArithmetic.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* @kind path-problem
88
* @problem.severity warning
99
* @precision high
10+
* @id cpp/upcast-array-pointer-arithmetic
1011
* @tags correctness
1112
* reliability
1213
* security
1314
* external/cwe/cwe-119
1415
* external/cwe/cwe-843
15-
* @id cpp/upcast-array-pointer-arithmetic
1616
*/
1717

1818
import cpp

cpp/ql/src/Likely Bugs/Format/SnprintfOverflow.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* @tags reliability
99
* correctness
1010
* security
11+
* external/cwe/cwe-190
12+
* external/cwe/cwe-253
1113
*/
1214

1315
import cpp

cpp/ql/src/Likely Bugs/Format/WrongNumberOfFormatArguments.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags reliability
1010
* correctness
1111
* security
12+
* external/cwe/cwe-234
1213
* external/cwe/cwe-685
1314
*/
1415

cpp/ql/src/Likely Bugs/Memory Management/PointerOverflow.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @id cpp/pointer-overflow-check
99
* @tags reliability
1010
* security
11+
* external/cwe/cwe-758
1112
*/
1213

1314
import cpp

cpp/ql/src/Likely Bugs/OO/UnsafeUseOfThis.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @tags correctness
1111
* language-features
1212
* security
13+
* external/cwe/cwe-670
1314
*/
1415

1516
import cpp

cpp/ql/src/Likely Bugs/Underspecified Functions/TooFewArguments.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @tags correctness
1313
* maintainability
1414
* security
15+
* external/cwe/cwe-234
16+
* external/cwe/cwe-685
1517
*/
1618

1719
import cpp

0 commit comments

Comments
 (0)