]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: don't overrun afi/safi array boundaries
authorLeonid Rosenboim <lrosenbo@wrs.com>
Thu, 6 Dec 2012 20:17:41 +0000 (20:17 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 14 Jan 2013 15:07:25 +0000 (16:07 +0100)
commit9499bf2bc6daf0a9b7170d3cf994daef2f1a8920
treeda0c36589c64c385b2f2ace17b92076febb9afe6
parent15c713485699fd22dfa5b7ce3ca7c6be049f1033
zebra: don't overrun afi/safi array boundaries

zebra was not checking afi/safi values.  This was leading to crashes where
these values were coming directly from some protocol's on-wire fields.
Safeguarding them in zebra is a good start.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/zebra_rib.c