]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: fix address sanitizer crash
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 24 May 2021 11:30:26 +0000 (08:30 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 24 May 2021 11:30:26 +0000 (08:30 -0300)
commit0f8443653dc210b7a982971105eaf380105043e3
treecea111376ae030bf2e6bbe4b51b3bb9dc81b543e
parent7b4e9d3cfc47678fb44ce7ded38321be702e86be
ospf6d: fix address sanitizer crash

Don't `memcpy` a `struct prefix` the memory size varies depending on the
original intended type. In this case the original type was (casted away)
`struct prefix_ipv6` and we tried to copy `struct prefix` which is
bigger.

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