Skip to content

Commit 7084dc1

Browse files
committed
C++: Promote 'cpp/use-after-free' and 'cpp/double-free' to Code Scanning.
1 parent 5632dd5 commit 7084dc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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

0 commit comments

Comments
 (0)