]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: efidebug, avoid illegal memory access
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 29 Apr 2020 18:21:39 +0000 (20:21 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 30 Apr 2020 08:25:07 +0000 (10:25 +0200)
commitdd9056c06a0557bc08ca986530024568e01ede6f
tree68ccc003f347fd6a2a00a001907e1cfe28e1c4db
parentb5f4e9e384c36234a0e7f1c60957f369c4c05b5e
efi_loader: efidebug, avoid illegal memory access

For EFI_PERSISTENT_MEMORY_TYPE the 'efidebug memmap' command produces an
illegal memory access.

* Add the missing descriptive string for EFI_PERSISTENT_MEMORY_TYPE.
* Replace the check for EFI_MAX_MEMORY_TYPE by the ARRAY_SIZE() macro.

Reported-by: Coverity (CID 300336)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/efidebug.c