Re: [dpdk-dev] [PATCH v2] examples/vm_power_manager: fix string null termination

2019-04-26 Thread Burakov, Anatoly
On 26-Apr-19 1:31 PM, Bruce Richardson wrote: On Fri, Apr 26, 2019 at 12:56:08PM +0100, Burakov, Anatoly wrote: On 26-Apr-19 12:24 PM, David Hunt wrote: coverity complains about a null-termination after a read, so we terminate after exiting the do-while loop. The position is conditional on whet

Re: [dpdk-dev] [PATCH v2] examples/vm_power_manager: fix string null termination

2019-04-26 Thread Bruce Richardson
On Fri, Apr 26, 2019 at 12:56:08PM +0100, Burakov, Anatoly wrote: > On 26-Apr-19 12:24 PM, David Hunt wrote: > > coverity complains about a null-termination after a read, > > so we terminate after exiting the do-while loop. The position > > is conditional on whether idx is within the buffer or at t

Re: [dpdk-dev] [PATCH v2] examples/vm_power_manager: fix string null termination

2019-04-26 Thread Burakov, Anatoly
On 26-Apr-19 12:24 PM, David Hunt wrote: coverity complains about a null-termination after a read, so we terminate after exiting the do-while loop. The position is conditional on whether idx is within the buffer or at the end of the buffer. Coverity issue: 337680 Fixes: a63504a90f ("examples/pow

[dpdk-dev] [PATCH v2] examples/vm_power_manager: fix string null termination

2019-04-26 Thread David Hunt
coverity complains about a null-termination after a read, so we terminate after exiting the do-while loop. The position is conditional on whether idx is within the buffer or at the end of the buffer. Coverity issue: 337680 Fixes: a63504a90f ("examples/power: add JSON string handling") CC: sta...@d