Re: [PATCH] libxenstat/Linux: pass nul-terminated string to strpbrk()

2023-08-08 Thread Anthony PERARD
On Wed, Jul 26, 2023 at 12:42:00PM +0200, Jan Beulich wrote: > While what "tmp" points to has been cleared at the end of the first > iteration of parseNetDevLine()'s main loop, this is too late for the > first iteration's invocation of strpbrk() (copying the interface name). > Properly nul-terminat

Re: [PATCH] libxenstat/Linux: pass nul-terminated string to strpbrk()

2023-08-03 Thread Juergen Gross
On 26.07.23 12:42, Jan Beulich wrote: While what "tmp" points to has been cleared at the end of the first iteration of parseNetDevLine()'s main loop, this is too late for the first iteration's invocation of strpbrk() (copying the interface name). Properly nul-terminate the string at population ti

[PATCH] libxenstat/Linux: pass nul-terminated string to strpbrk()

2023-07-26 Thread Jan Beulich
While what "tmp" points to has been cleared at the end of the first iteration of parseNetDevLine()'s main loop, this is too late for the first iteration's invocation of strpbrk() (copying the interface name). Properly nul-terminate the string at population time instead, removing the late clearing.