Roberto Sassu <roberto.sassu@xxxxxxxxxx> wrote: > + size_t size, datalen = *_datalen; > ... > + if ((int)size < 0) > + goto too_big; Hmmm... "if (size > INT_MAX)" is probably better. David
Roberto Sassu <roberto.sassu@xxxxxxxxxx> wrote: > + size_t size, datalen = *_datalen; > ... > + if ((int)size < 0) > + goto too_big; Hmmm... "if (size > INT_MAX)" is probably better. David