boot: Introduce file_size and use it when we're working with file_offset
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Oct 2024 10:40:32 +0000 (12:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 9 Oct 2024 18:36:57 +0000 (20:36 +0200)
commit8c5697182abda82aa621a877ad58fa039bba63ef
tree7b416e6a62b67b65868b609652b1e2791e7d37d1
parent78f65715058ebfeef0e6bb65df82f70ae3137775
boot: Introduce file_size and use it when we're working with file_offset

When we're reading a section from disk, use file_size to use the
size on disk instead of the size in memory.
src/boot/efi/boot.c
src/boot/efi/pe.c
src/boot/efi/pe.h