summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-02-17 21:06:28 -0500
committerPeter Jones <pjones@redhat.com>2021-02-19 14:28:10 -0500
commit1e78d701accc36a158abb588c8523ac0d4bd248a (patch)
tree3b9a1dd64cc9e687d85d70b16d744db6eeb962a8 /include
parent31e1aa7aca6a0d3bd4f26008b455e27be0952bea (diff)
downloadefi-boot-shim-1e78d701accc36a158abb588c8523ac0d4bd248a.tar.gz
efi-boot-shim-1e78d701accc36a158abb588c8523ac0d4bd248a.zip
parse_sbat: handle the realloc failure leak and batch allocations.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbat.h b/include/sbat.h
index 7441fa00..94ce01cb 100644
--- a/include/sbat.h
+++ b/include/sbat.h
@@ -25,6 +25,7 @@ struct sbat_entry {
};
EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, size_t *sbats, struct sbat_entry ***sbat);
+void cleanup_sbat_entries(size_t n, struct sbat_entry **entries);
EFI_STATUS verify_sbat(size_t n, struct sbat_entry **entries, list_t *var_entries);