diff options
| author | Peter Jones <pjones@redhat.com> | 2013-10-23 10:50:36 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-23 10:50:36 -0400 |
| commit | 56fb385a172890cf4c20c9daa89bb6cccf9c1b4e (patch) | |
| tree | 961e98270dddc788b4c7902b6bf4b48332108950 /MokManager.c | |
| parent | be73f6bd4f064015c9f12323e2fb2f51b8cdb631 (diff) | |
| download | efi-boot-shim-56fb385a172890cf4c20c9daa89bb6cccf9c1b4e.tar.gz efi-boot-shim-56fb385a172890cf4c20c9daa89bb6cccf9c1b4e.zip | |
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.
Diffstat (limited to 'MokManager.c')
| -rw-r--r-- | MokManager.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
