> > Expression "tx_chunks * ctx->dma_buf_size" in dma_fpga_to_fpga() is
> > evaluated
> > using 32-bit arithmetic, which would overflow potentially. Change
> > tx_chunks to
> > type "uint64_t" to avoid such issue.
> >
> > Coverity issue: 379203
> > Fixes: 7d63899a5c19 ("raw/ifpga: add N3000 AFU
Hi,
> -Original Message-
> From: Huang, Wei
> Sent: Thursday, June 23, 2022 11:12
> To: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com;
> hemant.agra...@nxp.com
> Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei
> ; Zhang, Qi Z ; Huang, Wei
>
> Subjec
> -Original Message-
> From: Huang, Wei
> Sent: Thursday, June 23, 2022 11:12 AM
> To: dev@dpdk.org; tho...@monjalon.net; nipun.gu...@nxp.com;
> hemant.agra...@nxp.com
> Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei
> ; Zhang, Qi Z ; Huang, Wei
>
> Subjec
Expression "tx_chunks * ctx->dma_buf_size" in dma_fpga_to_fpga()
is evaluated using 32-bit arithmetic, which would overflow
potentially. Change tx_chunks to type "uint64_t" to avoid such
issue.
Coverity issue: 379203
Fixes: 7d63899a5c19 ("raw/ifpga: add N3000 AFU driver")
Signed-off-by: Wei Huan
4 matches
Mail list logo