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

Reject ELF files with section entries smaller than symbol size #98

Closed Alan-Jowett closed 2 years ago

Alan-Jowett commented 2 years ago

See https://github.com/microsoft/ebpf-for-windows/issues/1191 for details.

This bug was discovered while fuzzing a tool that uses ELFIO.

Signed-off-by: Alan Jowett alan.jowett@microsoft.com

Resolves: #97

Alan-Jowett commented 2 years ago

Need to investigate why CI/CD is failing.

Alan-Jowett commented 2 years ago

Need to revert unrelated changed.

serge1 commented 2 years ago

Could you please explain the purpose of the commit? Why entry size check is not enough?

EDIT: Oh, I see the related issue.

serge1 commented 2 years ago

Accepted. Thank you!