Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by patchwork-bot+netdevbpf
Fri, 27 Nov 2026 16:10
Re: [PATCH iproute2] names: terminate the name returned by id_to_name()
Author: patchwork-bot+netdevbpf
Date: Fri, 27 Nov 2026 16:10
Date: Fri, 27 Nov 2026 16:10
25 lines
8565 bytes
8565 bytes
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
On Wed, 25 Nov 2026 08:47:21 -0800 you wrote:
> strncpy() does not terminate when the source is as long as the limit,
> and the tc class name from tc_cls may be up to NAME_MAX_LEN while the
> caller's buffer is IDNAME_MAX. A name of 256 characters or more filled
> the buffer with no room for the NUL, so the snprintf() that formats it
> read past the end.
>
> Use strlcpy(), which always terminates.
>
> [...]
Here is the summary with links:
- [iproute2] names: terminate the name returned by id_to_name()
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=35033e4713fe
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads