[dpdk-dev] [PATCH] vhost: fix buffer not null terminated

2016-05-10 Thread Daniel Mrzyglod
Fix issue reported by Coverity. Coverity ID 124556 If the buffer is treated as a null terminated string in later operations, a buffer overflow or over-read may occur. In vhost_set_ifname: The string buffer may not have a null terminator if the source string's length is equal to the buffer size F

[dpdk-dev] [PATCH] vhost: fix buffer not null terminated

2016-05-10 Thread Yuanhan Liu
On Tue, May 10, 2016 at 06:11:18PM +0200, Daniel Mrzyglod wrote: > Fix issue reported by Coverity. > Coverity ID 124556 > > If the buffer is treated as a null terminated string in later operations, > a buffer overflow or over-read may occur. > > In vhost_set_ifname: The string buffer may not have