diff options
| author | Ilya Okomin <ilya.okomin@oracle.com> | 2022-10-07 16:52:08 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2022-11-14 14:13:24 -0500 |
| commit | 17f02339ed1be9e90738603fe3c95ae7dc300061 (patch) | |
| tree | fac8c254a3b13b16866403a491345076d3758997 /Cryptlib/SysCall/BaseMemAllocation.c | |
| parent | 0cf43ac6d78c6f47f8b91210639ac1aa63665f0b (diff) | |
| download | efi-boot-shim-17f02339ed1be9e90738603fe3c95ae7dc300061.tar.gz efi-boot-shim-17f02339ed1be9e90738603fe3c95ae7dc300061.zip | |
pe: Fix image section entry-point validation
Seen mokmanager image load failure '2 sections contain entry point'
for shim built on Oracle Linux 9 aarch64. found_entry_point counter in
handle_image() uses SizeOfRawData to calculate section boundary.
PE spec defines VirtualSize for the total size of the section when loaded
into memory. SizeOfRawData is the size of the section (for object files)
or the size of the initialized data on disk.
Fix this issue by updating section in-memory size limit to VirtualSize.
Resolves: #517
Signed-off-by: Ilya Okomin <ilya.okomin@oracle.com>
Diffstat (limited to 'Cryptlib/SysCall/BaseMemAllocation.c')
0 files changed, 0 insertions, 0 deletions
