]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: readd iph length checks
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 22 Dec 2019 01:19:47 +0000 (20:19 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 22 Dec 2019 18:34:40 +0000 (13:34 -0500)
commitf08e6750740b1152fc140868213f66aa79e1d00a
tree060fa3249a97877580bdbc965ebd59d68a8b51d5
parent7809d22aa2d4b9be6fd9b6c0287c8174e8d8a263
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