This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 1/3] posix: Remove dynamic memory allocation from execl{e,p}



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.


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