summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_var_file.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-08-29 12:52:44 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-09-04 13:03:57 +0300
commitf3a343d7339acf1d531e438e15fef3c7975cfdcf (patch)
treedc0776611d802cb400f322b786044192ffad1605 /lib/efi_loader/efi_var_file.c
parent1ea133acd64eb0099865b0649b1d039ef63787ee (diff)
downloadu-boot-f3a343d7339acf1d531e438e15fef3c7975cfdcf.tar.xz
efi_loader: rounding of image size
We should not first allocate memory and then report a rounded up value as image size. Instead first round up according to section allocation and then allocate the memory. Fixes: 82786754b9d2 ("efi_loader: ImageSize must be multiple of SectionAlignment") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi_loader/efi_var_file.c')
0 files changed, 0 insertions, 0 deletions