diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-17 21:06:28 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-19 14:28:10 -0500 |
| commit | 1e78d701accc36a158abb588c8523ac0d4bd248a (patch) | |
| tree | 3b9a1dd64cc9e687d85d70b16d744db6eeb962a8 /include | |
| parent | 31e1aa7aca6a0d3bd4f26008b455e27be0952bea (diff) | |
| download | efi-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.h | 1 |
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); |
