Re: [RFC PATCH] libvduse: Do not truncate terminating NUL character with strncpy()

2022-09-20 Thread Markus Armbruster
Yongji Xie writes: > On Tue, Sep 20, 2022 at 7:25 PM Markus Armbruster wrote: >> >> Philippe Mathieu-Daudé writes: >> >> > GCC 8 added a -Wstringop-truncation warning: >> > >> > The -Wstringop-truncation warning added in GCC 8.0 via r254630 for >> > bug 81117 is specifically intended to hig

Re: [RFC PATCH] libvduse: Do not truncate terminating NUL character with strncpy()

2022-09-20 Thread Yongji Xie
On Tue, Sep 20, 2022 at 7:25 PM Markus Armbruster wrote: > > Philippe Mathieu-Daudé writes: > > > GCC 8 added a -Wstringop-truncation warning: > > > > The -Wstringop-truncation warning added in GCC 8.0 via r254630 for > > bug 81117 is specifically intended to highlight likely unintended > >

Re: [RFC PATCH] libvduse: Do not truncate terminating NUL character with strncpy()

2022-09-20 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > GCC 8 added a -Wstringop-truncation warning: > > The -Wstringop-truncation warning added in GCC 8.0 via r254630 for > bug 81117 is specifically intended to highlight likely unintended > uses of the strncpy function that truncate the terminating NUL > chara

[RFC PATCH] libvduse: Do not truncate terminating NUL character with strncpy()

2022-09-19 Thread Philippe Mathieu-Daudé via
GCC 8 added a -Wstringop-truncation warning: The -Wstringop-truncation warning added in GCC 8.0 via r254630 for bug 81117 is specifically intended to highlight likely unintended uses of the strncpy function that truncate the terminating NUL character from the source string. Here the next