Re: [dpdk-dev] [PATCH v2] crypto/octeontx: fix coverity issues

2018-11-13 Thread Akhil Goyal
On 11/12/2018 11:44 PM, Anoob Joseph wrote: > Coverity Issue: 323492 > > If the length of string pointed by 'name' is equal to or greater than > the sizeof cptvf->dev_name string, the resultant string will not be > null terminated. Using strlcpy would make sure the string would always > be null t

[dpdk-dev] [PATCH v2] crypto/octeontx: fix coverity issues

2018-11-12 Thread Anoob Joseph
Coverity Issue: 323492 If the length of string pointed by 'name' is equal to or greater than the sizeof cptvf->dev_name string, the resultant string will not be null terminated. Using strlcpy would make sure the string would always be null terminated. Fixes: 0dc1cffa4d33 ("crypto/octeontx: add ha