Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d163b4

Browse files
authored
Update WrongInDetectingAndHandlingMemoryAllocationErrors.qhelp
1 parent 25de82c commit 5d163b4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cpp/ql/src/experimental/Security/CWE/CWE-570/WrongInDetectingAndHandlingMemoryAllocationErrors.qhelp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<overview>
66
<p>When using the <code>new</code> operator to allocate memory, you need to pay attention to the different ways of detecting errors. <code>::operator new(std::size_t)</code> throws an exception on error, whereas <code>::operator new(std::size_t, const std::nothrow_t &)</code> returns zero on error. The programmer can get confused and check the error that occurs when allocating memory incorrectly. That can lead to an unhandled program termination or to a violation of the program logic.</p>
77

8-
<p>Loss of detection probably refers to use cases where memory allocation using your own solutions with strong nesting. It is also possible when using a buffer in the form of fields of different structures with the same names.</p>
9-
108
</overview>
119
<recommendation>
1210

0 commit comments

Comments
 (0)