diff options
| author | Peter Jones <pjones@redhat.com> | 2014-10-02 01:01:54 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2014-10-02 01:01:54 -0400 |
| commit | a6dfd3e426540b0eafc85f2e6bb3768fe190d3f2 (patch) | |
| tree | 20535d28cd601cb62c315a8caf8ab979ee93a9d4 /MokManager.c | |
| parent | 0dbc0e7f427c77aa12a58810c3f30f59e203bd5a (diff) | |
| download | efi-boot-shim-a6dfd3e426540b0eafc85f2e6bb3768fe190d3f2.tar.gz efi-boot-shim-a6dfd3e426540b0eafc85f2e6bb3768fe190d3f2.zip | |
Make another integer compare be signed/unsigned safe as well.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'MokManager.c')
| -rw-r--r-- | MokManager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MokManager.c b/MokManager.c index 4a9b1021..ee29051d 100644 --- a/MokManager.c +++ b/MokManager.c @@ -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; } |
