elfmaster / libelfmaster

Secure ELF parsing/loading library for forensics reconstruction of malware, and robust reverse engineering tools
http://www.bitlackeys.org
410 stars 64 forks source link

Allow iterator to return `ELF_ITER_NOTFOUND` when not found. #14

Closed strazzere closed 4 years ago

strazzere commented 4 years ago

Previously, when using elf_shared_object_iterator_next, if ldso_cache_bsearch fails to find a file, it would return an error, causing the iterator to become useless and no longer iterate. This will allow the caller to consume an ELF_ITER_NOTFOUND event and continue processing dependancies.

elfmaster commented 4 years ago

Nice work.