pppoe: fix uninitialized memory bug 46/27946/2
authorTimotheeChauvin <timchauv@cisco.com>
Thu, 16 Jul 2020 12:27:10 +0000 (12:27 +0000)
committerBenoît Ganne <bganne@cisco.com>
Fri, 17 Jul 2020 07:09:45 +0000 (07:09 +0000)
commit2887159a1a5f5c501c2df59bf88e6faa38e9699f
tree431ef75c8b8ad77a4d693a49902023a4d5f8d620
parent6c81f5a2493ff65b4dacfef45db8a1ee459a738f
pppoe: fix uninitialized memory bug

In pppoe_cp_node.c, node->errors[error0] was accessed without
node->errors being initialized.

Found with AFL + ASAN.

Type: fix
Signed-off-by: TimotheeChauvin <timchauv@cisco.com>
Change-Id: Ide8a60021b2d47b5e2fce7062d8f12c7f4d225f7
src/plugins/pppoe/pppoe.h
src/plugins/pppoe/pppoe_cp_node.c
src/plugins/pppoe/pppoe_decap.c