aboutsummaryrefslogtreecommitdiff
path: root/ldelf/include/elf_common.h
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2020-03-04 11:02:56 +0100
committerJérôme Forissier <jerome@forissier.org>2020-03-06 10:42:04 +0100
commitbc1d13c122371e8d16aa154f2bde93e5f28a2df9 (patch)
tree7abab276c177c90edc9e028d563839849a230bcf /ldelf/include/elf_common.h
parentce94efefb619f4d10aa95e81c2fe02a7dd03b753 (diff)
ldelf: check that PT_DYNAMIC is in range before use
Adds checks that the ELF program header PT_DYNAMIC is in range of the loaded ELF before they are used. This fixes an error where a malformed ELF may cause the loader to read data from other ELF or from the loader itself. Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reported-by: Martijn Bogaard <martijn@riscure.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'ldelf/include/elf_common.h')
0 files changed, 0 insertions, 0 deletions