[0/2] Avoid some crashes when loading separate debuginfo

Message ID cover.1636120354.git.fweimer@redhat.com
Headers
Series Avoid some crashes when loading separate debuginfo |

Message

Florian Weimer Nov. 5, 2021, 1:59 p.m. UTC
  This mini-series adds a small check to detect invalid LOAD segments.

Tested on i686-linux-gnu, x86_64-linux-gnu.  Built with
build-many-glibcs.py.

Florian Weimer (2):
  Use sysdeps/posix/dl-fileid.h as the generic and only implementation
  elf: Detect PT_LOAD segments that extend beyond EOF and refuse loading

 elf/dl-load.c               | 78 +++++++++++++++++++++----------------
 sysdeps/generic/dl-fileid.h | 35 ++++++++++-------
 sysdeps/posix/dl-fileid.h   | 50 ------------------------
 3 files changed, 65 insertions(+), 98 deletions(-)
 delete mode 100644 sysdeps/posix/dl-fileid.h


base-commit: ff012870b2c02a62598c04daa1e54632e020fd7d