Skip to content
Snippets Groups Projects
Commit b1237c6e authored by Alexander Graf's avatar Alexander Graf Committed by Tom Rini
Browse files

efi_loader: Fix relocations above 64kb image size


We were truncating the image offset within the target image to 16 bits
which again meant that we were potentially overwriting random memory
in the lower 16 bits of the image.

This patch casts the offset to a more reasonable 32bits.

With this applied, I can successfully see Shell.efi assert because it
can't find a protocol it expects to be available.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 68a2fd43
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment