mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-06-14 04:16:15 -07:00
TGL KW issue 19321
Added check for swpart to avoid accessing out of array elements Signed-off-by: Perni <ramesh.chandra.perni@intel.com>
This commit is contained in:
@@ -485,7 +485,7 @@ GetLogicalPartitionInfo (
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (SwPart >= PartBlockDev->BlockDeviceCount) {
|
||||
if ((SwPart >= PartBlockDev->BlockDeviceCount) || (SwPart >= PART_MAX_BLOCK_DEVICE)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user