Fixed a bug where minMemorySize could cause a memory overwrite

This commit is contained in:
Nic Barker 2025-01-11 21:37:21 +13:00
parent 32d1a31dfe
commit 9e7595b873
2 changed files with 1 additions and 1 deletions
clay.h
examples/clay-official-website/build/clay

2
clay.h
View File

@ -3615,7 +3615,7 @@ uint32_t Clay_MinMemorySize(void) {
.maxMeasureTextCacheWordCount = Clay__defaultMaxMeasureTextWordCacheCount,
.internalArena = {
.capacity = SIZE_MAX,
.memory = (char*)&fakeContext,
.memory = NULL,
}
};
Clay_Context* currentContext = Clay_GetCurrentContext();