Skip to content
  • Alexander Graf's avatar
    efi_loader: Fix relocations above 64kb image size · b1237c6e
    Alexander Graf authored
    
    
    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>
    b1237c6e