aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-brk.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-11-24 12:34:39 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-12-15 10:13:46 +0000
commitc6b016532705e158a330c31697e9dd4826aa68af (patch)
tree15189b94faffea0b00afbadac54776a6e6b45c6a /elf/dl-brk.c
parentcb5648b00f1f6f883d0d1691abc0d2fad2fcafd7 (diff)
downloadglibc-c6b016532705e158a330c31697e9dd4826aa68af.tar
glibc-c6b016532705e158a330c31697e9dd4826aa68af.tar.gz
glibc-c6b016532705e158a330c31697e9dd4826aa68af.tar.bz2
glibc-c6b016532705e158a330c31697e9dd4826aa68af.zip
elf: Fix failure handling in _dl_map_object_from_fd
The failure paths in _dl_map_object_from_fd did not clean every potentially allocated resource up. Handle l_phdr, l_libname and mapped segments in the common failure handling code. There are various bits that may not be cleaned properly on failure (e.g. executable stack, incomplete dl_map_segments) fixing those need further changes. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/dl-brk.c')
0 files changed, 0 insertions, 0 deletions