From 27c085482fd62bad298e14a3b4dd6ded9416909d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:21:17 +0200 Subject: [PATCH] Tier0: double sigscan mask buffer Some common (future) function signatures exceed this, which don't have other means of accessing it. --- src/tier0/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tier0/module.cpp b/src/tier0/module.cpp index bd25aa1e..ee299bc6 100644 --- a/src/tier0/module.cpp +++ b/src/tier0/module.cpp @@ -123,7 +123,7 @@ CMemory CModule::FindPatternSIMD(const uint8_t* pPattern, const char* szMask, const uint8_t* pEnd = pData + nSize - nMaskLen; size_t nOccurrenceCount = 0; - int nMasks[64]; // 64*16 = enough masks for 1024 bytes. + int nMasks[128]; // 128*16 = enough masks for 2048 bytes. const int iNumMasks = static_cast(ceil(static_cast(nMaskLen) / 16.f)); memset(nMasks, '\0', iNumMasks * sizeof(int));