fixed allocations with sizes smaller than the max area limited but bigger than the max payload size never return

This commit is contained in:
2026-06-13 20:23:52 +02:00
parent 38bbd53e7e
commit 58fef4fc9e
2 changed files with 11 additions and 1 deletions

View File

@@ -189,6 +189,7 @@ void MIHP_ValidateHeapMemoryAreaHeader(const MIHP_Heap* heap, const MIHP_HeapMem
void MIHP_ValidateHeapSegmentHeader(const MIHP_Heap* heap, const MIHP_HeapSegmentHeader* segment);
size_t MIHP_GetMinimalPayloadSize(const MIHP_Heap* heap);
size_t MIHP_GetMaximalPayloadSize(const MIHP_Heap* heap);
/* */
#if MIHP_IMPLEMENTATION