[PATCH] raw/ifpga: avoid potential integer overflow

Thomas Monjalon thomas at monjalon.net
Sun Jun 26 12:16:22 CEST 2022


> > 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 Huang <wei.huang at intel.com>
> 
> It looks good for me.
> 
> Acked-by: Tianfei Zhang <tianfei.zhang at intel.com>

Applied, thanks.





More information about the stable mailing list