C++: Rename query.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-05-06 13:35:08 +02:00
parent d3576b9c92
commit 420215931c
6 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ make sure to handle the possibility of null pointers if <code>new(std::nothrow)
</recommendation>
<example>
<sample src="WrongInDetectingAndHandlingMemoryAllocationErrors.cpp" />
<sample src="IncorrectAllocationErrorHandling.cpp" />
</example>
<references>

View File

@@ -1,8 +1,8 @@
/**
* @name Detect And Handle Memory Allocation Errors
* @name Incorrect allocation-error handling
* @description `operator new` throws an exception on allocation failures, while `operator new(std::nothrow)` returns a null pointer. Mixing up these two failure conditions can result in unexpected behavior.
* @kind problem
* @id cpp/detect-and-handle-memory-allocation-errors
* @id cpp/incorrect-allocation-error-handling
* @problem.severity warning
* @precision medium
* @tags correctness

View File

@@ -0,0 +1 @@
experimental/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql

View File

@@ -1 +0,0 @@
experimental/Security/CWE/CWE-570/WrongInDetectingAndHandlingMemoryAllocationErrors.ql