Re: [RFC][PATCH 04/12] PGPLIB: Basic packet parser
From: David Howells
Date: Mon Nov 12 2018 - 07:32:03 EST
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