diff options
author | Peter Jones <pjones@redhat.com> | 2021-12-09 17:21:45 -0500 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2021-12-10 17:08:21 -0500 |
commit | d0df9304c7a777557e1925dc9f75406ec00e6179 (patch) | |
tree | c55b6f81b17f39dfe72509425ef648de139c8c56 /lib/variables.c | |
parent | 2e78cd93390f83648a20b5b3bb934f846537e54c (diff) | |
download | efi-boot-shim-15.5-rc2.tar.gz efi-boot-shim-15.5-rc2.zip |
Minor coverity fixes15.5-rc2
- one missing free
- one minor deadcode issue
- two unchecked allocations
- one debug hexdump of a variable we just freed
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/variables.c')
-rw-r--r-- | lib/variables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/variables.c b/lib/variables.c index 3ec05478..8e63aa8f 100644 --- a/lib/variables.c +++ b/lib/variables.c @@ -68,6 +68,8 @@ fill_esl_with_one_signature(const uint8_t *data, const uint32_t data_len, if (out) { sd = AllocateZeroPool(sig_size); + if (!sd) + return EFI_OUT_OF_RESOURCES; if (owner) CopyMem(sd, (void *)owner, sizeof(EFI_GUID)); CopyMem(sd->SignatureData, (void *)data, data_len); |