On 10/21/2021 2:20 PM, Eli Britstein wrote:
RX/TX functions (rte_eth_rx_burst/rte_eth_tx_burst) get 'nb_pkts'
argument, which specifies the maximum number to receive/transmit.
It can be 0..nb_pkts, meaning nb_pkts+1 options.
Testpmd can provide statistics of the burst sizes ('set
record-burst-stats on') by incrementing an array cell of index
<burst-size>. This array is mistakenly [MAX_PKT_BURST] size. Receiving
the maximum burst will cause out of bound write.
Enlarge the spread stats array by one cell to fix it.

Fixes: af75078fece3 ("first public release")
Cc: [email protected]

Signed-off-by: Eli Britstein <[email protected]>
Reviewed-by: Matan Azrad <[email protected]>
Acked-by: Ferruh Yigit <[email protected]>

Applied to dpdk-next-net/main, thanks.

Reply via email to