]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix fpm netlink encode out of bounds read 12659/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 18 Jan 2023 18:53:10 +0000 (15:53 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 18 Jan 2023 18:53:10 +0000 (15:53 -0300)
commit18b7958e47b77b3a795ff4022c454c425bbae26d
treed6599db6c22e54972f838f1719e6cd375035a24b
parent405227b51959d9b05aaaf1bd1d33849e31565ae7
zebra: fix fpm netlink encode out of bounds read

Don't attempt to encode the pointer address instead pass the pointer
directly so the real contents can be accessed.

(`ri->pref_src` type is `union g_addr *`)

Found by Coverity Scan (CID 1482162)

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