Skip to content

Commit f3f5357

Browse files
committed
CPP: Fix metadata and add a change-note.
1 parent 3e9aeac commit f3f5357

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cpp/ql/src/Critical/IncorrectCheckScanf.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
* @kind problem
66
* @problem.severity warning
77
* @security-severity 7.5
8-
* @precision medium
9-
* @id cpp/discarded-scanf
8+
* @precision high
9+
* @id cpp/incorrectly-checked-scanf
1010
* @tags security
1111
* correctness
12-
* external/cwe/cwe-252
1312
* external/cwe/cwe-253
1413
*/
1514

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: new-query
3+
---
4+
* The `cpp/incorrectly-checked-scanf` query has been added. This finds results where the return value of scanf is not checked correctly. Some of these were previously found by `cpp/missing-check-scanf` and will no longer be reported there.

0 commit comments

Comments
 (0)