vlib: fix vlib_buffer_enqueue_to_next() overflow 93/33693/3
authorBenoît Ganne <bganne@cisco.com>
Wed, 8 Sep 2021 14:26:52 +0000 (16:26 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 9 Sep 2021 22:22:53 +0000 (22:22 +0000)
commit10bb21fb13aa74dcb0c2c0841d41a698bb274fbe
treedc96db1f8982973629ddbcacb75dd8e2ba24aaa3
parent2ac5c11cd32795ec917ff038262aee113d9e792a
vlib: fix vlib_buffer_enqueue_to_next() overflow

vlib_buffer_enqueue_to_next() requires to allow overflow of up to 63
elements of 'buffer' and 'nexts' array.
 - add helper to compute the minimum size
 - fix occurences in session and async crypto

Type: fix

Change-Id: If8d7eebc5bf9beba71ba194aec0f79b8eb6d5843
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlib/buffer_node.h
src/vnet/crypto/node.c
src/vnet/session/session_node.c