grub/grub-core
Alec Brown c8cf8272f4 loader/multiboot_elfxx: Check section header region before allocating memory
In grub-core/loader/multiboot_elfxx.c, space is being allocated for the section
header region, but isn't verifying if the region is within the file's size.
Before calling grub_calloc(), we can add a conditional to check if the section
header region is smaller than the file size.

Fixes: CID 314029
Fixes: CID 314038

Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2023-05-25 16:48:00 +02:00
..
2023-01-19 17:39:04 +01:00
2022-03-14 16:00:27 +01:00
2023-05-25 16:47:59 +02:00
2017-08-14 16:27:10 +02:00
2017-05-03 12:49:31 +02:00
2023-05-17 13:23:44 +02:00
2017-05-03 12:49:31 +02:00