]> git.ozlabs.org Git - ppp.git/commit
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)
commit8d7970b8f3db727fe798b65f3377fe6787575426
treec298d3f7631e7aff834151734bfd439c641d6126
parent858976b1fc3107f1261aae337831959b511b83c2
pppd: Fix bounds check in EAP code

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>
pppd/eap.c