summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-02-09 20:02:26 -0500
committerPeter Jones <pjones@redhat.com>2021-02-13 11:02:59 -0500
commit6b8ef61a1aa9c69aecb6a22cf79ddece727273e2 (patch)
tree916ea7f3aaaa80a75523cfbdc3a5bc790537a656 /lib/variables.c
parentee8f7ed3326cf680452a4eaf68208f5feb6ddb50 (diff)
downloadefi-boot-shim-6b8ef61a1aa9c69aecb6a22cf79ddece727273e2.tar.gz
efi-boot-shim-6b8ef61a1aa9c69aecb6a22cf79ddece727273e2.zip
SBAT: parse a copy of the table that's got a NUL at the end
Right now we allocate the PE file's contents in RW memory, but hopefully that won't always be the case. Our SBAT parsing, however, very much expects to be able to edit it. We also don't actually know that shim's .sbat section is loaded r/w, so we can't necessarily write there. This patch copies the SBAT data to its own buffer, plus one NUL byte at the end, so we can always be sure that will work. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions