Skip to content

Commit 4202159

Browse files
committed
C++: Rename query.
1 parent d3576b9 commit 4202159

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ make sure to handle the possibility of null pointers if <code>new(std::nothrow)
1717

1818
</recommendation>
1919
<example>
20-
<sample src="WrongInDetectingAndHandlingMemoryAllocationErrors.cpp" />
20+
<sample src="IncorrectAllocationErrorHandling.cpp" />
2121

2222
</example>
2323
<references>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* @name Detect And Handle Memory Allocation Errors
2+
* @name Incorrect allocation-error handling
33
* @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.
44
* @kind problem
5-
* @id cpp/detect-and-handle-memory-allocation-errors
5+
* @id cpp/incorrect-allocation-error-handling
66
* @problem.severity warning
77
* @precision medium
88
* @tags correctness
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
experimental/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-570/semmle/tests/WrongInDetectingAndHandlingMemoryAllocationErrors.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)