Commit a6dfd3e4 authored by Peter Jones's avatar Peter Jones

Make another integer compare be signed/unsigned safe as well.

Signed-off-by: default avatarPeter Jones <pjones@redhat.com>
parent 0dbc0e7f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment