mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
FatPkg/FatPei/Gpt.c: Fix uninitialized variable issue
Uninitialized pointer variable may randomly point to a block of memory. In This case, FreePool function will free a block of memory that is not belongs to this function. Cc: Ruiyu Ni <ray.ni@intel.com> Cc: Hao Wu <hao.a.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chen A Chen <chen.a.chen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
1f7af69d10
commit
aad4e2ec8f
@ -244,6 +244,9 @@ PartitionCheckGptEntryArray (
|
|||||||
UINTN Index2;
|
UINTN Index2;
|
||||||
EFI_PARTITION_ENTRY *Entry;
|
EFI_PARTITION_ENTRY *Entry;
|
||||||
|
|
||||||
|
PartitionEntryBuffer = NULL;
|
||||||
|
PartitionEntryStatus = NULL;
|
||||||
|
|
||||||
ParentBlockDev = &(PrivateData->BlockDevice[ParentBlockDevNo]);
|
ParentBlockDev = &(PrivateData->BlockDevice[ParentBlockDevNo]);
|
||||||
Found = FALSE;
|
Found = FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user