Skip to content

Commit dbe3bd0

Browse files
authored
Merge pull request github#14360 from MathiasVP/promote-use-after-free-and-double-free
C++: Promote `cpp/double-free` and `cpp/use-after-free` to Code Scanning
2 parents 5632dd5 + b6ed9cc commit dbe3bd0

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

cpp/ql/src/Critical/DoubleFree.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Potential double free
33
* @description Freeing a resource more than once can lead to undefined behavior and cause memory corruption.
44
* @kind path-problem
5-
* @precision medium
5+
* @precision high
66
* @id cpp/double-free
77
* @problem.severity warning
88
* @security-severity 9.3

cpp/ql/src/Critical/UseAfterFree.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Potential use after free
33
* @description An allocated memory block is used after it has been freed. Behavior in such cases is undefined and can cause memory corruption.
44
* @kind path-problem
5-
* @precision medium
5+
* @precision high
66
* @id cpp/use-after-free
77
* @problem.severity warning
88
* @security-severity 9.3
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* The `cpp/double-free` query has been further improved to reduce false positives and its precision has been increased from `medium` to `high`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* The `cpp/use-after-free` query has been further improved to reduce false positives and its precision has been increased from `medium` to `high`.

0 commit comments

Comments
 (0)