]> git.puffer.fish Git - mirror/frr.git/commit
pimd: readd iph length checks 5696/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 22 Dec 2019 01:19:47 +0000 (20:19 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 16 Jan 2020 19:47:49 +0000 (14:47 -0500)
commit97af7d892c916656cee1e64765c7f7a628912797
treeaa266a54271736b7a06f48e29905e7e924f7b6e7
parentffae92d209a85c1d1b8714eb427ac4a73df73746
pimd: readd iph length checks

Kernel might not hand us a bad packet, but better safe than sorry here.
Validate the IP header length field. Also adds an additional check that
the packet length is sufficient for an IGMP packet, and a check that we
actually have enough for an ip header at all.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
pimd/pim_igmp.c
pimd/pim_mroute.c