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

2020-08-14 Thread Stephen Hemminger
On Fri, 14 Aug 2020 12:00:44 +0100 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 trun

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

2020-08-14 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