Fix improper boundary checks and reference count leaks
Boundary checks allow for one extra label than the maximum, causing
memory corruption. Also, when a label is changed, reference to old
nexthop has to be released. Two harmless boundary checks in nexthop
subysystem is also addressed.
Reviewed: https:/ /review. opencontrail. org/9335 github. org/Juniper/ contrail- vrouter/ commit/ f004b0c4d11a0f3 64b600b492a06ac cbd54d0fb2
Committed: http://
Submitter: Zuul
Branch: R1.10
commit f004b0c4d11a0f3 64b600b492a06ac cbd54d0fb2
Author: Anand H. Krishnan <email address hidden>
Date: Tue Apr 21 17:31:30 2015 +0530
Fix improper boundary checks and reference count leaks
Boundary checks allow for one extra label than the maximum, causing
memory corruption. Also, when a label is changed, reference to old
nexthop has to be released. Two harmless boundary checks in nexthop
subysystem is also addressed.
Change-Id: I7c7e8cd39797d8 d203cac8087d5e3 1cf02438452
Closes-BUG: #1446550