> -----Original Message----- > From: Richardson, Bruce > Sent: Friday, January 26, 2018 2:50 PM > To: De Lara Guarch, Pablo <[email protected]>; Zhang, Roy > Fan <[email protected]> > Cc: [email protected]; De Lara Guarch, Pablo > <[email protected]>; [email protected] > Subject: RE: [dpdk-dev] [PATCH] crypto/scheduler: fix strncpy length > > > > > -----Original Message----- > > From: dev [mailto:[email protected]] On Behalf Of Pablo de Lara > > Sent: Friday, January 26, 2018 2:44 PM > > To: Zhang, Roy Fan <[email protected]> > > Cc: [email protected]; De Lara Guarch, Pablo > > <[email protected]>; [email protected] > > Subject: [dpdk-dev] [PATCH] crypto/scheduler: fix strncpy length > > > > The coverity issue was not completely fixed, since strncpy should be > > called with max length - 1. > > > > Coverity issue: 143431 > > Fixes: d040aca67170 ("crypto/scheduler: fix strings not null > > terminated") > > Cc: [email protected] > > > > Signed-off-by: Pablo de Lara <[email protected]> > > Use "snprintf", please, to fix these errors sanely without having to worry > about off-by-one issues! > > /Bruce
Thanks for the comment. Will send a v2 shortly. Pablo

