From 99cab3500d73d7ab5ad1650563d77ada8ce1a9c6 Mon Sep 17 00:00:00 2001 From: Gerardo Hernandez Date: Sun, 9 Nov 2025 12:12:24 +0000 Subject: [PATCH] SWDEV-561284 - Fix use of uninitialized memory in Unit_hipMemVmm_Basic and Unit_hipMemVmm_Uncached (#1677) --- projects/hip-tests/catch/unit/memory/hipMemVmm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/memory/hipMemVmm.cc b/projects/hip-tests/catch/unit/memory/hipMemVmm.cc index 92041ddb05..1c1fcb025b 100644 --- a/projects/hip-tests/catch/unit/memory/hipMemVmm.cc +++ b/projects/hip-tests/catch/unit/memory/hipMemVmm.cc @@ -50,7 +50,7 @@ TEST_CASE("Unit_hipMemVmm_Basic") { size_t granularity = 0; - hipMemAllocationProp memAllocationProp; + hipMemAllocationProp memAllocationProp{}; memAllocationProp.type = hipMemAllocationTypePinned; memAllocationProp.location.id = 0; memAllocationProp.location.type = hipMemLocationTypeDevice; @@ -110,7 +110,7 @@ TEST_CASE("Unit_hipMemVmm_Uncached") { size_t granularity = 0; - hipMemAllocationProp memAllocationProp; + hipMemAllocationProp memAllocationProp{}; memAllocationProp.type = hipMemAllocationTypeUncached; memAllocationProp.location.id = 0; memAllocationProp.location.type = hipMemLocationTypeDevice;