diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-07-31 14:11:34 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-03 09:21:02 +0200 |
commit | d12c3efe53107e4ce4f22e146594437e1ae89cfc (patch) | |
tree | 04f199d3344aaa7651898fe32f7130ffa403997b /lib/efi_loader/efi_memory.c | |
parent | ba27563093f4398ebf38e1e505fe50a00a5e17e7 (diff) |
efi_loader: error handling in tcg2_hash_pe_image()
If the hard coded array hash_algo_list[] contains an entry for an
unsupported algorithm, we should not leak resources new_efi and regs.
We should still extend the log with the digests for the supported
algorithms and not write any message.
The same holds true of tcg2_create_digest(): just continue in case
hash_algo_list[] contains an unsupported entry.
Fixes: 163a0d7e2cbd ("efi_loader: add PE/COFF image measurement")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/efi_loader/efi_memory.c')
0 files changed, 0 insertions, 0 deletions