RE: [EXTERNAL] [PATCH] eventdev: fix possible array underflow/overflow

2024-11-18 Thread Jerin Jacob
> -Original Message- > From: Bruce Richardson > Sent: Thursday, November 14, 2024 5:26 PM > To: dev@dpdk.org > Cc: Bruce Richardson ; sta...@dpdk.org; Naga > Harish K S V ; Jerin Jacob ; > Nikhil Rao > Subject: [EXTERNAL] [PATCH] eventdev: fix possible array un

[PATCH] eventdev: fix possible array underflow/overflow

2024-11-14 Thread Bruce Richardson
If the number of interrupts is zero, then indexing an array by "nb_rx_intr - 1" will cause an out-of-bounds write Fix this by putting in a check that nb_rx_intr > 0 before doing the array write. Coverity issue: 448870 Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") Cc: