Blame SOURCES/0005-efivar-Fix-some-types-in-L-behavior-to-pacify-coveri.patch

80b73c
From 4becb1303fee8bd7b377292c74589d6ec69009ae Mon Sep 17 00:00:00 2001
80b73c
From: Peter Jones <pjones@redhat.com>
80b73c
Date: Tue, 12 Jun 2018 14:36:20 -0400
80b73c
Subject: [PATCH 05/17] efivar: Fix some types in -L behavior to pacify
80b73c
 coverity.
80b73c
80b73c
Coverity doesn't realize that efi_well_known_guids is /actually/ an
80b73c
array, because we didn't tell it so.  So fix the declaration so we've
80b73c
told it so.
80b73c
80b73c
Signed-off-by: Peter Jones <pjones@redhat.com>
80b73c
---
80b73c
 src/efivar.c | 4 ++--
80b73c
 1 file changed, 2 insertions(+), 2 deletions(-)
80b73c
80b73c
diff --git a/src/efivar.c b/src/efivar.c
80b73c
index 9ee3b397e29..228bdb745a7 100644
80b73c
--- a/src/efivar.c
80b73c
+++ b/src/efivar.c
80b73c
@@ -485,13 +485,13 @@ int main(int argc, char *argv[])
80b73c
 		case ACTION_LIST_GUIDS: {
80b73c
 			efi_guid_t sentinal = {0xffffffff,0xffff,0xffff,0xffff,
80b73c
 					       {0xff,0xff,0xff,0xff,0xff,0xff}};
80b73c
-			extern struct guidname efi_well_known_guids;
80b73c
+			extern struct guidname efi_well_known_guids[];
80b73c
 			extern struct guidname efi_well_known_guids_end;
80b73c
 			intptr_t start = (intptr_t)&efi_well_known_guids;
80b73c
 			intptr_t end = (intptr_t)&efi_well_known_guids_end;
80b73c
 			unsigned int i;
80b73c
 
80b73c
-			struct guidname *guid = &efi_well_known_guids;
80b73c
+			struct guidname *guid = &efi_well_known_guids[0];
80b73c
 			for (i = 0; i < (end-start) / sizeof(*guid); i++) {
80b73c
 				if (!efi_guid_cmp(&sentinal, &guid[i].guid))
80b73c
 					break;
80b73c
-- 
80b73c
2.17.1
80b73c