From 56fb385a172890cf4c20c9daa89bb6cccf9c1b4e Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 23 Oct 2013 10:50:36 -0400 Subject: Revert "additional bounds-checking on section sizes" This reverts commit 21e40f0174814b3d91836e38c7cf95c8f2f1f3a4. In principle I like the idea of what's going on here, but generate_hash() really does need to have the expected result. --- MokManager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MokManager.c') diff --git a/MokManager.c b/MokManager.c index 3da61f43..f5ed379c 100644 --- a/MokManager.c +++ b/MokManager.c @@ -440,7 +440,7 @@ static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title) MokListNode *keys = NULL; INTN key_num = 0; CHAR16 **menu_strings; - unsigned int i; + int i; if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) + sizeof(EFI_SIGNATURE_DATA))) { @@ -491,7 +491,7 @@ static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title) static UINT8 get_line (UINT32 *length, CHAR16 *line, UINT32 line_max, UINT8 show) { EFI_INPUT_KEY key; - unsigned int count = 0; + int count = 0; do { key = console_get_keystroke(); @@ -640,7 +640,7 @@ static EFI_STATUS match_password (PASSWORD_CRYPT *pw_crypt, CHAR16 password[PASSWORD_MAX]; UINT32 pw_length; UINT8 fail_count = 0; - unsigned int i; + int i; if (pw_crypt) { auth_hash = pw_crypt->hash; -- cgit v1.2.3