Skip to content
Commit ea32ec35 authored by Florian Weimer's avatar Florian Weimer
Browse files

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: default avatarH.J. Lu <hjl.tools@gmail.com>
parent ff012870
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment