aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpp
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-11-05 17:01:24 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-11-05 19:36:06 +0100
commitcf8c6a634c0a04a9f5d198ef05310f85f7338839 (patch)
treef6f70cf2667ffe8ea17ec46cd397707d16c2cf99 /scripts/cpp
parentf411207a833d0c49578ebe7062aee3660813ed5f (diff)
downloadglibc-cf8c6a634c0a04a9f5d198ef05310f85f7338839.tar.xz
glibc-cf8c6a634c0a04a9f5d198ef05310f85f7338839.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> (cherry picked from commit ea32ec354c65ddad11b82ca9d057010df13a9cea)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions