Changeset 100308 in vbox for trunk/src/VBox/Runtime/common/alloc
- Timestamp:
- Jun 28, 2023 10:24:38 AM (19 months ago)
- Location:
- trunk/src/VBox/Runtime/common/alloc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp
r98103 r100308 380 380 * Validate input. The imposed minimum heap size is just a convenient value. 381 381 */ 382 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);382 AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER); 383 383 AssertReturn(cbMemory < UINT32_MAX, VERR_INVALID_PARAMETER); 384 384 AssertPtrReturn(pvMemory, VERR_INVALID_POINTER); -
trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp
r98103 r100308 297 297 * Validate input. The imposed minimum heap size is just a convenient value. 298 298 */ 299 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);299 AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER); 300 300 AssertPtrReturn(pvMemory, VERR_INVALID_POINTER); 301 301 AssertReturn((uintptr_t)pvMemory + (cbMemory - 1) > (uintptr_t)cbMemory, VERR_INVALID_PARAMETER);
Note:
See TracChangeset
for help on using the changeset viewer.