mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-05 11:43:20 +00:00
Make another integer compare be signed/unsigned safe as well.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
0dbc0e7f42
commit
a6dfd3e426
@ -192,7 +192,8 @@ static MokListNode *build_mok_list(UINT32 num, void *Data, UINTN DataSize) {
|
||||
list[count].Type = CertList->SignatureType;
|
||||
|
||||
/* MOK out of bounds? */
|
||||
if (list[count].MokSize > end - (void *)list[count].Mok) {
|
||||
if (list[count].MokSize > (unsigned long)end -
|
||||
(unsigned long)list[count].Mok) {
|
||||
FreePool(list);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user