]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: guard against junk in nexthop->rmap_src
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Jan 2025 10:17:21 +0000 (11:17 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Feb 2025 08:47:32 +0000 (09:47 +0100)
commit81034e73e6c4ee3e6a410db78cd0e2f2f676d6df
treeec9f383dedc1e0ab1fdd0a2cd4f9620802fba67e
parentddf0d28c61d87e23d1fa4861ecd706b5846941b5
zebra: guard against junk in nexthop->rmap_src

rmap_src wasn't initialized, so for IPv4 the unused 12 bytes would
contain whatever junk is on the stack on function entry.  Also move
the IPv4 parse before the IPv6 parse so if it's successful we can be
sure the other bytes haven't been touched.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit b666ee510eb480da50476b1bbc84bdf8365df95c)
zebra/zebra_routemap.c