Skip to content

Commit 156521a

Browse files
committed
Remove Vulnerable method.
1 parent c75eb7a commit 156521a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

UnmanagedMemory/Heap.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,5 @@ public void Destory()
4242
/// <param name="maxSize">The maximum size of the heap, in bytes. The HeapCreate function rounds dwMaximumSize up to a multiple of the system page size and then reserves a block of that size in the process's virtual address space for the heap. If allocation requests made by the HeapAlloc or HeapReAlloc functions exceed the size specified by dwInitialSize, the system commits additional pages of memory for the heap, up to the heap's maximum size.</param>
4343
/// <returns>If the function succeeds, the return value is a handle to the newly created heap.</returns>
4444
public static Heap CreateHeap(uint initSize, uint maxSize) => MemAPIs.CreateHeap(HeapFlags.HEAP_NONE, initSize, maxSize);
45-
46-
/// <summary>
47-
/// Creates a private heap object that can be used by the calling process. The function reserves space in the virtual address space of the process and allocates physical storage for a specified initial portion of this block.
48-
/// </summary>
49-
/// <returns>If the function succeeds, the return value is a handle to the newly created heap.</returns>
50-
public static Heap CreateHeap() => MemAPIs.CreateHeap(HeapFlags.HEAP_NONE, 0, 1024);
5145
}
5246
}

0 commit comments

Comments
 (0)