diff options
author | Takashi Iwai <[email protected]> | 2020-03-15 10:35:00 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-03-15 17:06:22 -0700 |
commit | 413ae546f8726ac0652e59fcf97561fc21f52653 (patch) | |
tree | 997b6c785c2a41365f9b197fc45144ebc143c025 /scripts/gcc-plugins/sancov_plugin.c | |
parent | 4a348601eb9131893c22b6ed2d3b6ba2bafc2391 (diff) |
net: nfp: 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().
Reviewed-by: Simon Horman <[email protected]>
Cc: "David S . Miller" <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: [email protected]
To: [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