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] libelf: Add some ar header sanity checking.


On Thu, 2014-12-11 at 16:30 +0100, Mark Wielaard wrote:
> Don't allow entries or size to overflow the parent file size.
>
> +2014-12-11  Mark Wielaard  <mjw@redhat.com>
> +
> +	* elf_begin.c (read_long_names): Check for offset overflow.
> +	(__libelf_next_arhdr_wrlock): Likewise. Sanity check the ar_size.
> +	Don't allow it to go beyond end of file.

I pushed this to master.

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