Re: [PATCH 1/1] efi_loader: check for image truncation

2020-08-27 Thread AKASHI Takahiro
On Thu, Aug 27, 2020 at 06:24:35PM +0200, Heinrich Schuchardt wrote: > Check in efi_load_pe() that the image size parameter is at least as large > as the image size indicated in the optional PE header. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_image_loader.c | 28

[PATCH 1/1] efi_loader: check for image truncation

2020-08-27 Thread Heinrich Schuchardt
Check in efi_load_pe() that the image size parameter is at least as large as the image size indicated in the optional PE header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_image_loader.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --gi