Re: [dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

2019-11-26 Thread David Marchand
On Mon, Nov 25, 2019 at 5:23 PM Bruce Richardson wrote: > > On Mon, Nov 25, 2019 at 03:23:03PM +, Bruce Richardson wrote: > > On a failure with the ioat dequeue, -1 is returned, which was not properly > > handled. This could lead to out-of-bounds reads on a later loop which > > assumed a posit

Re: [dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

2019-11-25 Thread Bruce Richardson
On Mon, Nov 25, 2019 at 03:23:03PM +, Bruce Richardson wrote: > On a failure with the ioat dequeue, -1 is returned, which was not properly > handled. This could lead to out-of-bounds reads on a later loop which > assumed a positive return value. Fix this by treating an error as though a > deque

[dpdk-dev] [PATCH] examples/ioat: handle failure case for ioat dequeue

2019-11-25 Thread Bruce Richardson
On a failure with the ioat dequeue, -1 is returned, which was not properly handled. This could lead to out-of-bounds reads on a later loop which assumed a positive return value. Fix this by treating an error as though a dequeue of 0 had been encountered. Coverity issue: 350342 Fixes: 2328542ed84e