diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-05-08 08:51:59 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-09 10:30:27 +0300 |
commit | 52d7bfe78787c93b95e805b44bb4d746a65edde4 (patch) | |
tree | 2a3ade1d823a64b825af7663ede6b2eb1dab1c8f /lib/efi_loader/efi_variable.c | |
parent | c5c657644bc35fd6b3d6e5517698721e90646b8d (diff) | |
download | u-boot-52d7bfe78787c93b95e805b44bb4d746a65edde4.tar.xz |
efi_loader: image_loader: fix a Coverity check against array access
Coverity detected:
Using "&opt->CheckSum" as an array. This might corrupt or misinterpret
adjacent memory locations.
The code should work as far as a structure, IMAGE_OPTIONAL_HEADER(64) is
packed, but modify it in more logical form. Subsystem is a member next to
CheckSum.
Reported-by: Coverity (CID 300339)
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
0 files changed, 0 insertions, 0 deletions