bier: fix vector size confusing ASan 42/26542/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 16 Apr 2020 10:40:54 +0000 (12:40 +0200)
committerNeale Ranns <nranns@cisco.com>
Thu, 16 Apr 2020 17:16:11 +0000 (17:16 +0000)
commit77100efb37f7cb333f9ab55dc206bf1431e3ae50
tree64f912a3705923a0138a016978ac35164d90d160
parentbd7f3422bbe38ba87888b765e94b56bfcbb9602c
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>
src/vnet/bier/bier_lookup.c