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
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
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
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