summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorJan Bobek <jbobek@nvidia.com>2020-10-02 00:15:07 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-10-13 03:20:49 +0000
commit9380177354387f03c8ff9eadb7ae94aa453b9469 (patch)
tree38e447e099f36570b021e8e273dc364891746629 /ShellPkg
parentb65afdde74d6c1fac1cdbd2efdad23ba26295808 (diff)
downloadedk2-9380177354387f03c8ff9eadb7ae94aa453b9469.tar.gz
edk2-9380177354387f03c8ff9eadb7ae94aa453b9469.tar.bz2
edk2-9380177354387f03c8ff9eadb7ae94aa453b9469.zip
MdePkg/BaseLib: Fix invalid memory access in AArch64 SetJump/LongJump
Correct the memory offsets used in REG_ONE/REG_PAIR macros to synchronize them with definition of the BASE_LIBRARY_JUMP_BUFFER structure on AArch64. The REG_ONE macro declares only a single 64-bit register be read/written; however, the subsequent offset is 16 bytes larger, creating an unused memory gap in the middle of the structure and causing SetJump/LongJump functions to read/write 8 bytes of memory past the end of the jump buffer struct. Signed-off-by: Jan Bobek <jbobek@nvidia.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'ShellPkg')
0 files changed, 0 insertions, 0 deletions