summaryrefslogtreecommitdiff
path: root/Cryptlib/opensslconf-diff.patch
diff options
context:
space:
mode:
authorDennis Tseng <dennis.tseng@suse.com>2023-06-27 21:41:19 +0800
committerPeter Jones <pjones@redhat.com>2023-07-19 15:32:11 -0400
commitfd43edacfe1eaa64d1c7b37ba23dae74e05d1a04 (patch)
tree98aa2bba93ffe336adb25af043905a445fd58fa9 /Cryptlib/opensslconf-diff.patch
parente24681211ce8a71583b5233084bd1290c3c7e872 (diff)
downloadefi-boot-shim-fd43edacfe1eaa64d1c7b37ba23dae74e05d1a04.tar.gz
efi-boot-shim-fd43edacfe1eaa64d1c7b37ba23dae74e05d1a04.zip
Work around ImageAddress() usage mistake
In 569270d8603d68308ad8bf8ef4cad4b09101d35e, the PE loader's address sanitizing function, ImageAddress(), was changed to match the intended behavior and the accompanying test case. Unfortunately, the PE relocator uses this function to compute the last address in the relocation directory, and as a result, any binary with a relocations will trigger that edge condition and fail to load. This patch changes that call to compute the address that's one byte earlier. The only things the computed value is used for are a) testing that the relocation *section* is valid, and b) serving as a limit for iterating the relocations. Since a relocation is never less than two bytes, this will still work. [commit message re-written to be more informative by pjones] Signed-off-by: Dennis Tseng <dennis.tseng@suse.com>
Diffstat (limited to 'Cryptlib/opensslconf-diff.patch')
0 files changed, 0 insertions, 0 deletions