efi_loader: fix possible buffer overflow
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 14 Apr 2021 02:55:49 +0000 (11:55 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 17 Apr 2021 18:01:32 +0000 (20:01 +0200)
commitb1a7a5e0b8822a0868ee9318d8d3fa9645efc12d
tree02db639be3785a1edd0bc552783a66fe88101c6c
parente8287b0fb2be8acf8d0412be3b4174768fef348c
efi_loader: fix possible buffer overflow

Variable "final" will have SHA512 digest, but currently
the array size is not sufficient. Let's fix it.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_tcg2.c