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] 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

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