Skip to content
Commit 1916c5f0 authored by Florian Weimer's avatar Florian Weimer Committed by Aurelien Jarno
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>
(cherry picked from commit ea32ec35)
parent d44e1a07
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