mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-10 17:41:47 +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;
|
list[count].Type = CertList->SignatureType;
|
||||||
|
|
||||||
/* MOK out of bounds? */
|
/* 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);
|
FreePool(list);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user