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 ea32ec35)
Loading
Please register or sign in to comment