diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 09:47:08 +0100 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2020-03-12 10:21:27 +0200 |
commit | dfb252c7b680b0d1f88aa0af0b54577fd29ac525 (patch) | |
tree | b70508c71e34b83dd5936f845388234e489729f4 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | bc8f237823bca96a879d17a96a4c2b1a10c38b6d (diff) |
ath5k: 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: Jiri Slaby <[email protected]>
Cc: Nick Kossifidis <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions