This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] elflint: Only check the PT_TLS phdr if it actually exists.


On Thu, 2015-06-18 at 11:28 -0700, Roland McGrath wrote:
> It should complain separately for that case, not just be silent.

You are right. I made it into its own case and complain.

> Arguably, it should just barf if any gelf_getphdr call fails, because
> that can only be due to a deep bogon.

Yeah, maybe elflint should really just wrap gelf_getphdr and
gelf_getshdr and complain and quit when they return NULL instead of
trying to continue. The ELF file is probably completely bogus anyway in
those cases.

Thanks,

Mark

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]