diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-09 20:02:26 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-13 11:02:59 -0500 |
| commit | 6b8ef61a1aa9c69aecb6a22cf79ddece727273e2 (patch) | |
| tree | 916ea7f3aaaa80a75523cfbdc3a5bc790537a656 /lib/variables.c | |
| parent | ee8f7ed3326cf680452a4eaf68208f5feb6ddb50 (diff) | |
| download | efi-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
