diff options
author | Takashi Iwai <[email protected]> | 2020-03-15 10:35:03 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-03-15 17:06:22 -0700 |
commit | 2da222f612b58b6e6b41972f46005b58aac1699e (patch) | |
tree | 0158c85ae4a0e88363acec4ea23c0049983b7605 /scripts/gcc-plugins/sancov_plugin.c | |
parent | 5e892880e14fbc1944f49aa42a67496516fe5dac (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" <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: [email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions