bier: fix vector size confusing ASan 88/28388/1
authorBenoît Ganne <bganne@cisco.com>
Thu, 16 Apr 2020 10:40:54 +0000 (12:40 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 13 Aug 2020 17:20:47 +0000 (17:20 +0000)
commit346e6e186ad2f24fcf07fa16c1a1f9468504afb5
treecc19a32fc5248359c739a754c09fb2244ecf1f95
parent8453fb7509b7fa43c8e94f8cf383c638d36dc0bf
bier: fix vector size confusing ASan

The vector is initialized to 1024 entries which is guaranteed to be
enough, but as its size can shrink between calls, make sure ASan is
aware of the expected size before using it.

Type: fix

Change-Id: I4bcc39867a886b3cb463854d2cda0b32155650e9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 77100efb37f7cb333f9ab55dc206bf1431e3ae50)
src/vnet/bier/bier_lookup.c