bgpd: tighten bounds checking in RR ORF msg readermaster
commitd64379e8f3c0636df53ed08d5b2f1946cfedd0e3
authorChris Hall <chris.hall@highwayman.com>
Fri, 14 May 2010 12:38:39 +0000 (14 16:38 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 14 May 2010 12:38:39 +0000 (14 16:38 +0400)
treec34d8f271fe3be61cdfd23327ef73f2ede966924
parente26873fd8f0c4306eff65de94a45b4114fc81b98
bgpd: tighten bounds checking in RR ORF msg reader

* bgp_packet.c: (bgp_route_refresh_receive) add validation of
  "Length" (RFC5292) field value, check input stream bounds
  each time bytes are pulled from it
bgpd/bgp_packet.c