Re: [PATCH v8 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-09-12 Thread Yafang Shao
On Fri, Sep 13, 2024 at 5:14 AM Justin Stitt wrote: > > Hi, > > On Wed, Aug 28, 2024 at 11:03:17AM GMT, Yafang Shao wrote: > > Let's explicitly ensure the destination string is NUL-terminated. This way, > > it won't be affected by changes to the source string. > > > > Signed-off-by: Yafang Shao >

Re: [PATCH v8 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-09-12 Thread Justin Stitt
Hi, On Wed, Aug 28, 2024 at 11:03:17AM GMT, Yafang Shao wrote: > Let's explicitly ensure the destination string is NUL-terminated. This way, > it won't be affected by changes to the source string. > > Signed-off-by: Yafang Shao > Reviewed-by: Quentin Monnet > --- > tools/bpf/bpftool/pids.c | 2