finixbit / elf-parser

Lightweight elf binary parser with no external dependencies - Sections, Symbols, Relocations, Segments
MIT License
250 stars 44 forks source link

Missing validation #1

Open jorickert opened 6 years ago

jorickert commented 6 years ago

Your parser seems to not validate the input files. This makes it easy to crash and possible exploit a program using it. If this is by design it should be documented in the readme.

finixbit commented 6 years ago

loader check of its a valid elf64 file before preceeding in https://github.com/finixbit/elf-parser/blob/master/elf_parser.cpp#L202