serge1 / ELFIO

ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
http://serge1.github.io/ELFIO
MIT License
706 stars 152 forks source link

Stop parsing ELF if segment header is beyond end of file #100

Closed Alan-Jowett closed 2 years ago

Alan-Jowett commented 2 years ago

elfio::load_segments should fail the parsing of the file if the segment header is beyond the end of the file.

Resolves: #99 Signed-off-by: Alan Jowett alanjo@microsoft.com

serge1 commented 2 years ago

Accepted. Thank you!