Updated to more secure memory allocation function

This commit is contained in:
Benjamin Höglinger-Stelzer
2022-06-24 22:34:02 +02:00
parent da4b8419f5
commit 53673bda45
4 changed files with 278 additions and 276 deletions

View File

@@ -684,7 +684,7 @@ VOID ViGEm::Bus::Core::EmulationTargetPDO::DumpAsHex(PCSTR Prefix, PVOID Buffer,
#ifdef DBG
size_t dumpBufferLength = ((BufferLength * sizeof(CHAR)) * 2) + 1;
PSTR dumpBuffer = static_cast<PSTR>(ExAllocatePoolWithTag(
PSTR dumpBuffer = static_cast<PSTR>(ExAllocatePoolZero(
NonPagedPoolNx,
dumpBufferLength,
'1234'