mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
HookAfterStubHeader is copied before execution. Thus, relative addressing cannot safely be used for anything outside the copy range. Fix the reference of HookAfterStubHeaderEnd to be absolute. This change alone violates an undocumented requirement that HookAfterStubHeader and AsmIdtVector are structurally equivalent (their respective sizes in particular). Resolve this by treating them (and in particular their sizes) independently.