Skip to content

Commit 666c8bf

Browse files
authored
Merge pull request #21635 from geoffw0/suspicioussizeof2
C++: Upgrade cpp/suspicious-add-sizeof to high precision
2 parents c748fdf + fe7e848 commit 666c8bf

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

cpp/ql/integration-tests/query-suite/cpp-code-scanning.qls.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ql/cpp/ql/src/Security/CWE/CWE-367/TOCTOUFilesystemRace.ql
4343
ql/cpp/ql/src/Security/CWE/CWE-416/IteratorToExpiredContainer.ql
4444
ql/cpp/ql/src/Security/CWE/CWE-416/UseOfStringAfterLifetimeEnds.ql
4545
ql/cpp/ql/src/Security/CWE/CWE-416/UseOfUniquePointerAfterLifetimeEnds.ql
46+
ql/cpp/ql/src/Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql
4647
ql/cpp/ql/src/Security/CWE/CWE-497/ExposedSystemData.ql
4748
ql/cpp/ql/src/Security/CWE/CWE-611/XXE.ql
4849
ql/cpp/ql/src/Security/CWE/CWE-676/DangerousFunctionOverflow.ql

cpp/ql/src/Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @kind problem
77
* @problem.severity warning
88
* @security-severity 8.8
9-
* @precision medium
9+
* @precision high
1010
* @id cpp/suspicious-add-sizeof
1111
* @tags security
1212
* external/cwe/cwe-468
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The "Suspicious add with sizeof" (`cpp/suspicious-add-sizeof`) query has been upgraded to `high` precision. This query will now run in the default code scanning suite.

0 commit comments

Comments
 (0)