This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: out-of-bounds read / crash in elfutils tools (readelf, nm, ...) with malformed file
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 06 Nov 2014 10:25:43 -0800
- Subject: Re: out-of-bounds read / crash in elfutils tools (readelf, nm, ...) with malformed file
> /* First see whether the information in the section header is
> valid and it does not ask for too much. */
> if (unlikely (offset + size > elf->maximum_size))
This is not overflow-proof.