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

2019-04-22 Thread Thomas Monjalon
15/04/2019 16:50, Hunt, David: > On 9/4/2019 5:00 PM, Reshma Pattan wrote: > > After the read() the jason_data null termination is missing > > for the case "indent < 0", for "indent > 0" and "indent == 0" > > cases null termination is already handled. > > > > So add the missing case "indent < 0" to

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

2019-04-15 Thread Hunt, David
On 9/4/2019 5:00 PM, Reshma Pattan wrote: After the read() the jason_data null termination is missing for the case "indent < 0", for "indent > 0" and "indent == 0" cases null termination is already handled. So add the missing case "indent < 0" to the existing "indent == 0" case to fix null ter

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

2019-04-09 Thread Reshma Pattan
After the read() the jason_data null termination is missing for the case "indent < 0", for "indent > 0" and "indent == 0" cases null termination is already handled. So add the missing case "indent < 0" to the existing "indent == 0" case to fix null termination. Coverity issue: 337680 Fixes: a6350