mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-27 06:44:08 +00:00
Get rid of SectionCache in generate_hash(), it is unused.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
16a8356350
commit
a63d665fb8
3
shim.c
3
shim.c
@ -509,7 +509,6 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
|
|||||||
unsigned int datasize;
|
unsigned int datasize;
|
||||||
EFI_IMAGE_SECTION_HEADER *Section;
|
EFI_IMAGE_SECTION_HEADER *Section;
|
||||||
EFI_IMAGE_SECTION_HEADER *SectionHeader = NULL;
|
EFI_IMAGE_SECTION_HEADER *SectionHeader = NULL;
|
||||||
EFI_IMAGE_SECTION_HEADER *SectionCache;
|
|
||||||
EFI_STATUS status = EFI_SUCCESS;
|
EFI_STATUS status = EFI_SUCCESS;
|
||||||
EFI_IMAGE_DOS_HEADER *DosHdr = (void *)data;
|
EFI_IMAGE_DOS_HEADER *DosHdr = (void *)data;
|
||||||
unsigned int PEHdr_offset = 0;
|
unsigned int PEHdr_offset = 0;
|
||||||
@ -594,7 +593,7 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Validate section locations and sizes */
|
/* Validate section locations and sizes */
|
||||||
for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++, SectionCache++) {
|
for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++) {
|
||||||
EFI_IMAGE_SECTION_HEADER *SectionPtr;
|
EFI_IMAGE_SECTION_HEADER *SectionPtr;
|
||||||
|
|
||||||
/* Validate SectionPtr is within image */
|
/* Validate SectionPtr is within image */
|
||||||
|
Loading…
Reference in New Issue
Block a user