[dpdk-stable] [dpdk-dev] [PATCH] app/proc-info: fix string copying to use strlcpy
David Marchand
david.marchand at redhat.com
Sun Oct 27 11:36:45 CET 2019
On Thu, Sep 26, 2019 at 4:44 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> On Thu, Sep 26, 2019 at 04:11:59PM +0100, Ciara Power wrote:
> > Replaced strncpy and strcpy with strlcpy.
> > Also replaced snprintf with strlcpy where applicable.
> > Using strlcpy is safe practice when copying strings,
> > as it will include a null terminator.
> >
> >
> > Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id")
> > Fixes: 8a37f37fc243 ("app/procinfo: add --show-port")
> > Cc: stable at dpdk.org
> > Reported-by: Reshma Pattan <reshma.pattan at intel.com>
> > Signed-off-by: Ciara Power <ciara.power at intel.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied, thanks.
--
David Marchand
More information about the stable
mailing list