audk/OvmfPkg/VirtNorFlashDxe
Gerd Hoffmann 4a443f73fd OvmfPkg/VirtNorFlashDxe: sanity-check variables
Extend the ValidateFvHeader function, additionally to the header checks
walk over the list of variables and sanity check them.

In case we find inconsistencies indicating variable store corruption
return EFI_NOT_FOUND so the variable store will be re-initialized.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20240109112902.30002-4-kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: fix StartId initialization/assignment coding style]
2024-01-09 16:31:57 +00:00
..
VirtNorFlash.c OvmfPkg/VirtNorFlashDxe: use EFI_MEMORY_WC and drop AlignedCopyMem() 2022-10-27 16:52:01 +00:00
VirtNorFlash.h OvmfPkg/VirtNorFlashDxe: drop block I/O protocol implementation 2022-10-27 16:52:01 +00:00
VirtNorFlashDxe.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
VirtNorFlashDxe.inf OvmfPkg/VirtNorFlashDxe: sanity-check variables 2024-01-09 16:31:57 +00:00
VirtNorFlashFvb.c OvmfPkg/VirtNorFlashDxe: sanity-check variables 2024-01-09 16:31:57 +00:00