diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-10 15:05:22 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-11 09:49:02 -0500 |
| commit | dcf9a122ec68016a5d4e9da4972b9261cd7f6686 (patch) | |
| tree | 1b1c25971937e3bc535cb21e4a3c7c47b35d4aa1 /Cryptlib/OpenSSL/crypto/objects/obj_dat.c | |
| parent | cf5efd5a982e597c9e767de1cf51f2ef1512c02e (diff) | |
| download | efi-boot-shim-dcf9a122ec68016a5d4e9da4972b9261cd7f6686.tar.gz efi-boot-shim-dcf9a122ec68016a5d4e9da4972b9261cd7f6686.zip | |
set_sbat_uefi_variable(): avoid comparing unsafe data
A few cleanups:
- Ensure that the data we get from get_variable() is at least big enough
to actually be an SBAT variable
- Only try to delete if the variable is actually set
- Don't set the variable again if deleting it failed
- We don't actually need to get the size of the variable, allocate,
and then get the variable; get_variable() does the allocation for us.
- Don't compare the variable data when get_variable() failed
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/objects/obj_dat.c')
0 files changed, 0 insertions, 0 deletions
