tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Increase PTHREAD_KEYS_MAX (round 2)



On Fri, May 22, 2015 at 02:57:48PM +0000, Emmanuel Dreyfus wrote:
> On Wed, May 20, 2015 at 03:11:48PM +0200, Joerg Sonnenberger wrote:
> > > http://ftp.espci.fr/shadow/manu/pthread_keys_max.patch
> > This will just overflow the pthread structure? Besides, use strtoi,
> > calloc etc.
> 
> Here is an updated version using strtoll, calloc and taking care
> of struct __pthread_st integrity:
> http://ftp.espci.fr/shadow/manu/pthread_keys_max3.patch

Arrays of size 0 are invalid in C. You likely mean [].

Joerg


Home | Main Index | Thread Index | Old Index