diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-11-05 17:01:24 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-11-05 19:34:16 +0100 |
commit | ea32ec354c65ddad11b82ca9d057010df13a9cea (patch) | |
tree | ecc543a6270d1ab51b1ac4b27a720f0577be8046 /elf/tst-auditmod1.c | |
parent | ff012870b2c02a62598c04daa1e54632e020fd7d (diff) | |
download | glibc-ea32ec354c65ddad11b82ca9d057010df13a9cea.tar.gz glibc-ea32ec354c65ddad11b82ca9d057010df13a9cea.tar.xz glibc-ea32ec354c65ddad11b82ca9d057010df13a9cea.zip |
elf: Earlier missing dynamic segment check in _dl_map_object_from_fd
Separated debuginfo files have PT_DYNAMIC with p_filesz == 0. We need to check for that before the _dl_map_segments call because that could attempt to write to mappings that extend beyond the end of the file, resulting in SIGBUS. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'elf/tst-auditmod1.c')
0 files changed, 0 insertions, 0 deletions