Re: [dpdk-dev] [PATCH v2 3/4] examples/mp_server: fix snprintf overflow

2020-10-09 Thread Nicolau, Radu
On 8/21/2020 6:10 PM, Bruce Richardson wrote: When producing a printable mac address the buffer was appropriately sized for holding the mac address exactly, but the actual snprintf included a '\n' character at the end, which means that the snprintf technically is getting truncated i.e. the \n w

[dpdk-dev] [PATCH v2 3/4] examples/mp_server: fix snprintf overflow

2020-08-21 Thread Bruce Richardson
When producing a printable mac address the buffer was appropriately sized for holding the mac address exactly, but the actual snprintf included a '\n' character at the end, which means that the snprintf technically is getting truncated i.e. the \n would not be added due to lack of space. This gets