|
|
4210fa |
From 5103c3b368e04dd1eab1202b87363c7e6ba8f927 Mon Sep 17 00:00:00 2001
|
|
|
4210fa |
From: Peter Jones <pjones@redhat.com>
|
|
|
4210fa |
Date: Fri, 11 Apr 2014 15:07:45 -0400
|
|
|
4210fa |
Subject: [PATCH 25/74] Get rid of SectionCache in generate_hash(), it is
|
|
|
4210fa |
unused.
|
|
|
4210fa |
|
|
|
4210fa |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
4210fa |
---
|
|
|
4210fa |
shim.c | 3 +--
|
|
|
4210fa |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
4210fa |
|
|
|
4210fa |
diff --git a/shim.c b/shim.c
|
|
|
4210fa |
index d06bd02..48a6f2f 100644
|
|
|
4210fa |
--- a/shim.c
|
|
|
4210fa |
+++ b/shim.c
|
|
|
4210fa |
@@ -509,7 +509,6 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
|
|
|
4210fa |
unsigned int datasize;
|
|
|
4210fa |
EFI_IMAGE_SECTION_HEADER *Section;
|
|
|
4210fa |
EFI_IMAGE_SECTION_HEADER *SectionHeader = NULL;
|
|
|
4210fa |
- EFI_IMAGE_SECTION_HEADER *SectionCache;
|
|
|
4210fa |
EFI_STATUS status = EFI_SUCCESS;
|
|
|
4210fa |
EFI_IMAGE_DOS_HEADER *DosHdr = (void *)data;
|
|
|
4210fa |
unsigned int PEHdr_offset = 0;
|
|
|
4210fa |
@@ -594,7 +593,7 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
|
|
|
4210fa |
#endif
|
|
|
4210fa |
|
|
|
4210fa |
/* Validate section locations and sizes */
|
|
|
4210fa |
- for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++, SectionCache++) {
|
|
|
4210fa |
+ for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++) {
|
|
|
4210fa |
EFI_IMAGE_SECTION_HEADER *SectionPtr;
|
|
|
4210fa |
|
|
|
4210fa |
/* Validate SectionPtr is within image */
|
|
|
4210fa |
--
|
|
|
4210fa |
1.9.3
|
|
|
4210fa |
|