Maxime Villard <m...@m00nbsd.net> writes:

>  * Put is_dyn before. It's just a small optimization:
>    elf_check_header(eh, ET_EXEC) is always called before checking
>    is_dyn, so if we invert the two things we avoid calling
>    elf_check_header() twice if is_dyn is ok.

- How often is_dyn is true?

- Isn't it better to decouple file type check and the rest of validation
  to reduce duplicated tests completely?

enami.

Reply via email to