summaryrefslogtreecommitdiff
path: root/lib/fdt_strerror.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-15 10:35:03 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-15 17:06:22 -0700
commit2da222f612b58b6e6b41972f46005b58aac1699e (patch)
tree0158c85ae4a0e88363acec4ea23c0049983b7605 /lib/fdt_strerror.c
parent5e892880e14fbc1944f49aa42a67496516fe5dac (diff)
net: netdevsim: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Cc: "David S . Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions