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

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2014-10-02 01:01:54 -04:00
parent 0dbc0e7f42
commit a6dfd3e426

View File

@ -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;
}