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

Validate size of entries before accessing members #132

Closed Alan-Jowett closed 6 months ago

Alan-Jowett commented 6 months ago

When accessing relocation records and symbol records, validate the entry size against the expected type and fail if it doesn't match.

Resolves: #131

serge1 commented 6 months ago

Accepted. Thank you!