From 7e2002283efaa1d1355123b3dfaffc51c205fc1f Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 13 Sep 2021 08:58:30 +0200 Subject: [PATCH] driver: Replace depreciated ExAllocatePoolWithTag CodeQL with Windows-Driver-Developer-Supplemental-Tools suggests the ExAllocatePoolWithTag() should no longer be used. The Static Tools Logo Test in HLK spots this in the DVL log and fails. Signed-off-by: Simon Rozman --- driver/wintun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/wintun.c b/driver/wintun.c index ae42552..79952e4 100644 --- a/driver/wintun.c +++ b/driver/wintun.c @@ -804,7 +804,7 @@ TunForceHandlesClosed(_Inout_ DEVICE_OBJECT *DeviceObject) { if (HandleTable) ExFreePoolWithTag(HandleTable, TUN_MEMORY_TAG); - HandleTable = ExAllocatePoolWithTag(PagedPool, RequestedSize, TUN_MEMORY_TAG); + HandleTable = ExAllocatePoolUninitialized(PagedPool, RequestedSize, TUN_MEMORY_TAG); if (!HandleTable) return FALSE; }