Skip to content

Commit 2656b5d

Browse files
authored
Merge pull request #22179 from jketema/jketema.new-free
C++: Update the CWE tag of `cpp/new-free-mismatch`
2 parents b3c16b4 + 9efcc49 commit 2656b5d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

cpp/ql/src/Critical/NewFreeMismatch.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id cpp/new-free-mismatch
99
* @tags reliability
1010
* security
11-
* external/cwe/cwe-401
11+
* external/cwe/cwe-762
1212
*/
1313

1414
import NewDelete
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* Added the tag `external/cwe/cwe-762` to `cpp/new-free-mismatch`, and removed the tag `external/cwe/cwe-401`. This better matches the behavior of the query.

0 commit comments

Comments
 (0)