[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<172437123351.2508974.14515879032118431427.git-patchwork-notify@kernel.org>
Date: Fri, 23 Aug 2024 00:00:33 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Simon Horman <horms@...nel.org>
Cc: irusskikh@...vell.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: atlantic: Avoid warning about potential
string truncation
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 21 Aug 2024 16:58:57 +0100 you wrote:
> W=1 builds with GCC 14.2.0 warn that:
>
> .../aq_ethtool.c:278:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=]
> 278 | snprintf(tc_string, 8, "TC%d ", tc);
> | ^~
> .../aq_ethtool.c:278:56: note: directive argument in the range [-2147483641, 254]
> 278 | snprintf(tc_string, 8, "TC%d ", tc);
> | ^~~~~~~
> .../aq_ethtool.c:278:33: note: ‘snprintf’ output between 5 and 15 bytes into a destination of size 8
> 278 | snprintf(tc_string, 8, "TC%d ", tc);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> [...]
Here is the summary with links:
- [net-next] net: atlantic: Avoid warning about potential string truncation
https://git.kernel.org/netdev/net-next/c/5874e0c9f256
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists