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

@@ -1189,8 +1189,8 @@ NTSTATUS ViGEm::Bus::Targets::EmulationTargetDS4::SubmitReportImpl(PVOID NewRepo
VOID ViGEm::Bus::Targets::EmulationTargetDS4::ReverseByteArray(PUCHAR Array, INT Length)
{
const auto s = static_cast<PUCHAR>(ExAllocatePoolWithTag(
NonPagedPool,
const auto s = static_cast<PUCHAR>(ExAllocatePoolZero(
NonPagedPoolNx,
sizeof(UCHAR) * Length,
'U4SD'
));