From e1cf8af9d314794ccd18f505a4b79df6d13d2a51 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 13 Dec 2023 16:57:31 +0100 Subject: [PATCH] zero the Entries array on allocation --- src/common/filesystem/source/resourcefile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/filesystem/source/resourcefile.cpp b/src/common/filesystem/source/resourcefile.cpp index 2f2ffd414e..2b5fa5d484 100644 --- a/src/common/filesystem/source/resourcefile.cpp +++ b/src/common/filesystem/source/resourcefile.cpp @@ -274,6 +274,7 @@ void FResourceFile::AllocateEntries(int count) { NumLumps = count; Entries = (FResourceEntry*)stringpool->Alloc(count * sizeof(FResourceEntry)); + memset(Entries, 0, count * sizeof(FResourceEntry)); }