[dpdk-dev] [PATCH] examples/vm_power_manager: buffer not null terminated

2016-04-27 Thread Thomas Monjalon
2016-04-12 17:13, Daniel Mrzyglod: > CID30691: > If the buffer is treated as a null terminated string in later operations, > a buffer overflow or over-read may occur. [...] > --- a/examples/vm_power_manager/channel_manager.c > +++ b/examples/vm_power_manager/channel_manager.c > - strncpy(new_do

[dpdk-dev] [PATCH] examples/vm_power_manager: buffer not null terminated

2016-04-12 Thread Daniel Mrzyglod
CID30691: If the buffer is treated as a null terminated string in later operations, a buffer overflow or over-read may occur. In add_vm: The string buffer may not have a null terminator if the source string's length is equal to the buffer size Fixes: e8ae9b662506 ("examples/vm_power: channel mana