[edk2-devel] [PATCH RESEND] RedfishPkg/RedfishDiscoverDxe: Fix memory free issue

2022-10-29 Thread Chang, Abner via groups.io
From: Abner Chang Check the memory block pointer before freeing it. Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Abner Chang --- .../RedfishDiscoverDxe/RedfishDiscoverDxe.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/RedfishPkg/RedfishDis

[edk2-devel] [PATCH EDK2 v1 1/1] ArmPlatformPkg/Drivers/NorFlashDxe:avoid index out of bound

2022-10-29 Thread wenyi,xie via groups.io
The size of array BlockMap is 1 in struct FirmwareVolumeHeader, but in function InitializeFvAndVariableStoreHeaders, BlockMap[1] is been written. The memory of BlockMap[1] is already allocated, so the code is OK. But it is better to use a new point to assign this memory. Cc: Leif Lindholm Cc: Ard

[edk2-devel] [PATCH EDK2 v1 0/1] ArmPlatformPkg/Drivers/NorFlashDxe:avoid index out of bound

2022-10-29 Thread wenyi,xie via groups.io
Main Changes : 1.Adding new point to assign the value of struct EFI_FV_BLOCK_MAP_ENTRY. Wenyi Xie (1): ArmPlatformPkg/Drivers/NorFlashDxe:avoid index out of bound ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvb.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.20.1.windo

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishDiscoverDxe: Fix memory free issue

2022-10-29 Thread Nickle Wang via groups.io
Reviewed-by: Nickle Wang From: devel@edk2.groups.io on behalf of Chang, Abner via groups.io Sent: Saturday, October 29, 2022 11:59 AM To: devel@edk2.groups.io Cc: Nickle Wang ; Igor Kulchytskyy Subject: [edk2-devel] [PATCH] RedfishPkg/RedfishDiscoverDxe: Fix