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/9441 github. org/Juniper/ contrail- vrouter/ commit/ bec0c7944567d27 0c722a5285e06cd e41ddfb824
Committed: http://
Submitter: Zuul
Branch: R2.1
commit bec0c7944567d27 0c722a5285e06cd e41ddfb824
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