]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Fix bounds check in EAP code
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 3 Feb 2020 04:53:28 +0000 (15:53 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 3 Feb 2020 04:53:28 +0000 (15:53 +1100)
Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

No differences found