pppoe: fix uninitialized memory bug 92/28492/2
authorTimotheeChauvin <timchauv@cisco.com>
Thu, 16 Jul 2020 12:27:10 +0000 (12:27 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 18 Aug 2020 19:47:21 +0000 (19:47 +0000)
commit76797dc615b641362692337fbbaedd0f0cabb00e
treee6bb047df2594be49576da58bd0945c117f45447
parent526906751067ff66a87bab591766bc0ff4b91095
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
(cherry picked from commit 2887159a1a5f5c501c2df59bf88e6faa38e9699f)
src/plugins/pppoe/pppoe.h
src/plugins/pppoe/pppoe_cp_node.c
src/plugins/pppoe/pppoe_decap.c