]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: sanitize efi_tcg2_final_events_table definition
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 10 Apr 2024 22:50:43 +0000 (00:50 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 Apr 2024 09:03:12 +0000 (11:03 +0200)
commit5884481e2a2613ae5f3b9c1dab0671acd88ca961
treef6b18c33e963fc80dd424237ced0fa5e23ad3a44
parent0ec4279ba32fc923374c80a3e817de263d0cc185
efi_loader: sanitize efi_tcg2_final_events_table definition

The length of the variable name typically is not 1.
Neither the length of the variable name nor the size of the appended
data is known in the include.

* Define the size of element variable_name as variable.
* Remove the unusable element variable_data.

Addresses-Coverity-ID: 467400 Out-of-bounds read
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_tcg2.h