diff --git a/minimal_heap_implementation.inl b/minimal_heap_implementation.inl index ac92e16..cb210bb 100644 --- a/minimal_heap_implementation.inl +++ b/minimal_heap_implementation.inl @@ -10,6 +10,9 @@ bool MIHP_InitializeHeap(MIHP_Heap* heap, MIHP_HeapConfig config) if (MIHP_IsHeapInitialized(heap)) return false; + if (heap == NULL) + return false; + if (config.AllocationAlignment < sizeof(size_t)) return false;