]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: don't process invalid prefixes from TLVs
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 8 May 2012 11:15:45 +0000 (13:15 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 25 Oct 2012 17:15:59 +0000 (10:15 -0700)
commitf02a09925db53d3e1d29b1917ebbcaa8edf72c12
tree8c8fefac30fa372f4e04c6a9f8ceed6569f55570
parent948b6bef7f9cf841a98fe3ea40419696500c8c4c
isisd: don't process invalid prefixes from TLVs

it's possible to feed invalid prefixes (1.2.3.4/40 or dead::beef/200) on
IS-IS.  if this is not checked, it will later cause an assert in
processing.  let's simply abort processing the TLV if the prefix is
invalid.

  * isisd/isis_tlv.c: check prefix lengths for validity

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