Skip to content

Commit 814c0ae

Browse files
authored
Merge pull request #21632 from geoffw0/wrongtype2
C++: Upgrade cpp/wrong-type-format-argument to high precision
2 parents 9ea33bc + 3769a8a commit 814c0ae

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
@@ -11,6 +11,7 @@ ql/cpp/ql/src/Likely Bugs/Arithmetic/SignedOverflowCheck.ql
1111
ql/cpp/ql/src/Likely Bugs/Conversion/CastArrayPointerArithmetic.ql
1212
ql/cpp/ql/src/Likely Bugs/Format/SnprintfOverflow.ql
1313
ql/cpp/ql/src/Likely Bugs/Format/WrongNumberOfFormatArguments.ql
14+
ql/cpp/ql/src/Likely Bugs/Format/WrongTypeFormatArguments.ql
1415
ql/cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql
1516
ql/cpp/ql/src/Likely Bugs/Memory Management/PointerOverflow.ql
1617
ql/cpp/ql/src/Likely Bugs/Memory Management/ReturnStackAllocatedMemory.ql

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @kind problem
66
* @problem.severity error
77
* @security-severity 7.5
8-
* @precision medium
8+
* @precision high
99
* @id cpp/wrong-type-format-argument
1010
* @tags reliability
1111
* correctness
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 "Wrong type of arguments to formatting function" (`cpp/wrong-type-format-argument`) query has been upgraded to `high` precision. This query will now run in the default code scanning suite.

0 commit comments

Comments
 (0)