Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] Some tweaks for ELF

Maxime Villard <> 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?


Home | Main Index | Thread Index | Old Index