linux_dsm_epyc7002/drivers/net/ppp
Guillaume Nault 555d5b70f1 ppp: clarify parsing of user supplied data in ppp_set_compress()
* Split big conditional statement.
  * Check (data.length <= CCP_MAX_OPTION_LENGTH) only once.
  * Don't read ccp_option[1] if not initialised.

Reading uninitialised ccp_option[1] was harmless, because this could
only happen when data.length was 0 or 1. So even then, we couldn't pass
the (ccp_option[1] < 2 || ccp_option[1] > data.length) test anyway.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-02-24 23:52:51 -05:00
..
bsd_comp.c
Kconfig
Makefile
ppp_async.c
ppp_deflate.c
ppp_generic.c ppp: clarify parsing of user supplied data in ppp_set_compress() 2016-02-24 23:52:51 -05:00
ppp_mppe.c
ppp_mppe.h
ppp_synctty.c
pppoe.c pppoe: fix reference counting in PPPoE proxy 2016-02-17 16:02:01 -05:00
pppox.c
pptp.c