summaryrefslogtreecommitdiff
path: root/Cryptlib/SysCall/TimerWrapper.c
diff options
context:
space:
mode:
authorIlya Okomin <ilya.okomin@oracle.com>2022-10-07 16:52:08 -0400
committerPeter Jones <pjones@redhat.com>2022-11-14 14:13:24 -0500
commit17f02339ed1be9e90738603fe3c95ae7dc300061 (patch)
treefac8c254a3b13b16866403a491345076d3758997 /Cryptlib/SysCall/TimerWrapper.c
parent0cf43ac6d78c6f47f8b91210639ac1aa63665f0b (diff)
downloadefi-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/TimerWrapper.c')
0 files changed, 0 insertions, 0 deletions