diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2020-03-04 11:02:56 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-03-06 10:42:04 +0100 |
commit | bc1d13c122371e8d16aa154f2bde93e5f28a2df9 (patch) | |
tree | 7abab276c177c90edc9e028d563839849a230bcf /ldelf/include/elf_common.h | |
parent | ce94efefb619f4d10aa95e81c2fe02a7dd03b753 (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