Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbat: append NUL byte to .sbat section #412

Closed
wants to merge 1 commit into from

Commits on Sep 6, 2021

  1. sbat: append NUL byte to .sbat section

    When the UEFI firmware loads the .sbat section into memory it only
    intializes VirtSize bytes. Directly behind the .sbat section will be
    unintialized memory with unknown content.
    
    Shim's image file header is not available at runtime. Up to now the
    .sbat section ended with LF. So it was not possible to determine the
    end of the .bat section in memory.
    
    By appending a NUL byte to the .sbat section we get a well defined
    file end.
    
    Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
    xypron committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    24176b7 View commit details
    Browse the repository at this point in the history