disk: part_efi: range-check partition number
Enhance get_partition_info_efi() to range-check the partition number.
This prevents invalid partitions being accessed, and prevents access
beyond the end of the gpt_pte[] array.
Signed-off-by: NStephen Warren <swarren@nvidia.com>
Showing
想要评论请 注册 或 登录