Skip to content

Commit ae85ada

Browse files
authored
Merge pull request #21634 from geoffw0/compwidertype2
C++: Upgrade cpp/comparison-with-wider-type to high precision
2 parents 6078df5 + bcf612e commit ae85ada

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
@@ -30,6 +30,7 @@ ql/cpp/ql/src/Security/CWE/CWE-120/VeryLikelyOverrunWrite.ql
3030
ql/cpp/ql/src/Security/CWE/CWE-131/NoSpaceForZeroTerminator.ql
3131
ql/cpp/ql/src/Security/CWE/CWE-134/UncontrolledFormatString.ql
3232
ql/cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql
33+
ql/cpp/ql/src/Security/CWE/CWE-190/ComparisonWithWiderType.ql
3334
ql/cpp/ql/src/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero.ql
3435
ql/cpp/ql/src/Security/CWE/CWE-253/HResultBooleanConversion.ql
3536
ql/cpp/ql/src/Security/CWE/CWE-311/CleartextFileWrite.ql

cpp/ql/src/Security/CWE/CWE-190/ComparisonWithWiderType.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 7.8
9-
* @precision medium
9+
* @precision high
1010
* @tags reliability
1111
* security
1212
* external/cwe/cwe-190
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 "Comparison of narrow type with wide type in loop condition" (`cpp/comparison-with-wider-type`) query has been upgraded to `high` precision. This query will now run in the default code scanning suite.

0 commit comments

Comments
 (0)