lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <172526575764.510261.15886768991015863081.b4-ty@kernel.org>
Date: Mon, 02 Sep 2024 13:59:17 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Keguang Zhang <keguang.zhang@...il.com>
Cc: linux-mips@...r.kernel.org, dmaengine@...r.kernel.org, 
 linux-kernel@...r.kernel.org, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] dmaengine: loongson1-apb-dma: Fix the build warning
 caused by the size of pdev_irqname


On Sat, 31 Aug 2024 17:41:09 +0800, Keguang Zhang wrote:
> drivers/dma/loongson1-apb-dma.c: In function 'ls1x_dma_probe':
> drivers/dma/loongson1-apb-dma.c:531:42: warning: '%d' directive writing between 1 and 8 bytes into a region of size 2 [-Wformat-overflow=]
>   531 |                 sprintf(pdev_irqname, "ch%d", id);
>       |                                          ^~
> In function 'ls1x_dma_chan_probe',
>     inlined from 'ls1x_dma_probe' at drivers/dma/loongson1-apb-dma.c:605:8:
> drivers/dma/loongson1-apb-dma.c:531:39: note: directive argument in the range [0, 19522579]
>   531 |                 sprintf(pdev_irqname, "ch%d", id);
>       |                                       ^~~~~~
> drivers/dma/loongson1-apb-dma.c:531:17: note: 'sprintf' output between 4 and 11 bytes into a destination of size 4
>   531 |                 sprintf(pdev_irqname, "ch%d", id);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> [...]

Applied, thanks!

[1/1] dmaengine: loongson1-apb-dma: Fix the build warning caused by the size of pdev_irqname
      commit: e0bee4bcdc3238ebcae6e5960544b9e3d0a62abf

Best regards,
-- 
~Vinod



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ