diff options
| author | Renaud Métrich <rmetrich@redhat.com> | 2023-01-16 07:49:44 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2023-02-01 13:19:39 -0500 |
| commit | f23883ccf78f1f605a272f9e5700f47e5494a71d (patch) | |
| tree | 0d509aaa4f839f68ad6b9226d1a2e73e8b999436 /Cryptlib/Cryptlib.diff | |
| parent | e4f40ae862b5389c8cc7d4f938a34238421456a1 (diff) | |
| download | efi-boot-shim-f23883ccf78f1f605a272f9e5700f47e5494a71d.tar.gz efi-boot-shim-f23883ccf78f1f605a272f9e5700f47e5494a71d.zip | |
Don't loop forever in load_certs() with buggy firmware
On DELL R350 booting DVD through RFS with BIOS 1.4.2 in Secure Boot,
firmware returns EFI_BUFFER_TOO_SMALL but with new buffersize set to 0,
which causes the load_certs() code to loop forever:
while (1) {
efi_status = dir->Read(dir, &buffersize, buffer);
if (efi_status == EFI_BUFFER_TOO_SMALL) {
...
continue;
}
...
}
This commit prevents such infinite loop.
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Diffstat (limited to 'Cryptlib/Cryptlib.diff')
0 files changed, 0 insertions, 0 deletions
