aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/generated/devlink-user.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-10-21 18:03:53 +0000
committerDavid S. Miller <[email protected]>2023-10-22 10:28:43 +0000
commitca082f019d8fbb983f03080487946da714154bae (patch)
treed009f06f735770eb8fdebac3810cbd2c735b52fb /tools/net/ynl/generated/devlink-user.c
parentnet: ethernet: adi: adin1110: Fix uninitialized variable (diff)
downloadkernel-ca082f019d8fbb983f03080487946da714154bae.tar.gz
kernel-ca082f019d8fbb983f03080487946da714154bae.zip
net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()
strncat() usage in adf7242_debugfs_init() is wrong. The size given to strncat() is the maximum number of bytes that can be written, excluding the trailing NULL. Here, the size that is passed, DNAME_INLINE_LEN, does not take into account the size of "adf7242-" that is already in the array. In order to fix it, use snprintf() instead. Fixes: 7302b9d90117 ("ieee802154/adf7242: Driver for ADF7242 MAC IEEE802154") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions