]> git.proxmox.com Git - mirror_qemu.git/commit
contrib/elf2dmp: Ensure phdrs fit in file
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 7 Mar 2024 10:21:02 +0000 (19:21 +0900)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 11 Mar 2024 17:06:27 +0000 (17:06 +0000)
commit98d16e5f724cf4f884cab28956321a4a093474d7
treeea8355fa7cca00a1345ed36fc2dd2682d340884a
parent9de37c288367ad22dd8abe069eeae17faf6e3ed9
contrib/elf2dmp: Ensure phdrs fit in file

Callers of elf64_getphdr() and elf_getphdrnum() assume phdrs are
accessible.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2202
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240307-elf2dmp-v4-19-4f324ad4d99d@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
contrib/elf2dmp/qemu_elf.c