diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-12-04 18:03:03 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-12-16 23:07:55 +0100 |
commit | b9b17598f42c29b905a8b4a778e505244a89bd9a (patch) | |
tree | d5d71962095495dca55de0c5bcd5cfdcb4ccae54 /lib/efi_selftest/efi_selftest_tpl.c | |
parent | 678e03a00cafc9009f05cbcc3192235f2b8f9a33 (diff) |
efi_loader: error handling in efi_load_image()
If a failure occurs when trying to load an image, it is insufficient
to free() the EFI object. We must remove it from the object list,
too. Otherwise a use after free will occur the next time we
iterate over the object list.
Furthermore errors in setting up the image should be handled.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_tpl.c')
0 files changed, 0 insertions, 0 deletions