This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] Do without union of variable length arrays.
- From: Florian Weimer <fweimer at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 02 Oct 2015 16:17:43 +0200
- Subject: Re: [PATCH] Do without union of variable length arrays.
On 09/08/2015 11:08 PM, Chih-Hung Hsieh wrote:
> + void *phdrs = malloc (phnum * sizeof (phdr_u));
If you change this code anyway, it's sensible to check for integer
overflow in the size computation.
Thanks,
Florian