]> git.puffer.fish Git - matthieu/frr.git/commit
bfdd: fix coverity memory overrun
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 6 Jul 2022 10:52:17 +0000 (07:52 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 6 Jul 2022 10:52:17 +0000 (07:52 -0300)
commitf14233edbded0f2acccdf491b2173debd5c836e6
tree1e55797022b466f2da63b8a54e873ff50c3f69d3
parent500fe387a0e4ff474e3f85a317ac73f733dccf01
bfdd: fix coverity memory overrun

Use the destination for the operator `sizeof()` instead of the source
which could (and is) be bigger than destination.

We are not truncating any data here it just happens that the zebra
interface data structure hardware address can be bigger due to different
types of interface.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bfdd/bfd_packet.c