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

Skip to content

Commit abdeaab

Browse files
authored
Update MemoryLeakOnFailedCallToRealloc.ql
1 parent 2b8227e commit abdeaab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/src/experimental/Security/CWE/CWE-401/MemoryLeakOnFailedCallToRealloc.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
22
* @name Memory leak on failed call to realloc
33
* @description The expression mem = realloc (mem, size) is potentially dangerous, if the call fails, we will lose the pointer to the memory block.
4-
* An unsuccessful call is possible not only when trying to allocate a large amount of memory, but also when the process memory is strongly segmented.
54
* We recommend storing the result in a temporary variable and eliminating memory leak.
65
* @kind problem
76
* @id cpp/memory-leak-on-failed-call-to-realloc
87
* @problem.severity warning
98
* @precision medium
10-
* @tags security
9+
* @tags correctness
10+
* security
1111
* external/cwe/cwe-401
1212
*/
1313

0 commit comments

Comments
 (0)