stats: fix vector overrun in expend check 17/35917/3
authorDmitry Valter <d-valter@yandex-team.ru>
Fri, 8 Apr 2022 10:08:32 +0000 (10:08 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 8 Apr 2022 16:15:32 +0000 (16:15 +0000)
commit1c8c6d302af494c963842de06910d3c1c8187e42
treee990bf6af8f09619c7e3abc9d286b5c90b96357e
parentd5045e68a782d484e3f0e54edb4a88dc3dfac291
stats: fix vector overrun in expend check

Do not access allocated elements beyond the end of the vector. They are
allocated, but not yet valid both logically (they are at best NULLs) and
according to ASAN.

Type: fix
Change-Id: Iaf43767d6d3bd4c24c7c5a0ba9b3410bbeeb0556
Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru>
src/vlib/stats/stats.c