[PATCH 1/3] posix: Remove dynamic memory allocation from execl{e,p}

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Feb 26 20:18:00 GMT 2016



On 26-02-2016 17:07, Paul Eggert wrote:
> On 02/26/2016 11:40 AM, Adhemerval Zanella wrote:
>> Indeed, but afaik this code won't execute if argc == INT_MAX (the argument
>> sanity check will make the function with E2BIG).
> 
> No, because we add 1 to argc after testing that it is not INT_MAX. So argc can equal INT_MAX after that.

Right, I am assuming you are referring to the potentially overflow in
addition, now the stack allocation.  I will change to ptrdiff_t.



More information about the Libc-alpha mailing list