diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-11-24 12:34:39 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-12-15 10:13:46 +0000 |
commit | c6b016532705e158a330c31697e9dd4826aa68af (patch) | |
tree | 15189b94faffea0b00afbadac54776a6e6b45c6a /localedata/tst-langinfo-newlocale-static.c | |
parent | cb5648b00f1f6f883d0d1691abc0d2fad2fcafd7 (diff) | |
download | glibc-c6b016532705e158a330c31697e9dd4826aa68af.tar.gz glibc-c6b016532705e158a330c31697e9dd4826aa68af.tar.xz 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 'localedata/tst-langinfo-newlocale-static.c')
0 files changed, 0 insertions, 0 deletions