[PATCH] partitions: efi: fix overflow issues while allocating gpt entries
Sascha Hauer
s.hauer at pengutronix.de
Fri Nov 8 01:38:35 PST 2024
On Thu, 31 Oct 2024 15:48:52 +0300, Abdelrahman Youssef wrote:
> while parsting the GPT header in alloc_read_gpt_entries() the number
> of partitions can be large that multiplying it with the size of a single
> partition overflows 32-bit multiplication.
>
> we already enforce a MAX_PARTITION limit of 128 partitions in efi_partition(),
> so allowing any bigger value in alloc_read_gpt_entries() would fail,
> even if we fix the overflow.
>
> [...]
Applied, thanks!
[1/1] partitions: efi: fix overflow issues while allocating gpt entries
https://git.pengutronix.de/cgit/barebox/commit/?id=ae8ec8dc9d6e (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list