aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-11 09:47:07 +0100
committerKalle Valo <[email protected]>2020-03-12 10:21:14 +0200
commitbc8f237823bca96a879d17a96a4c2b1a10c38b6d (patch)
treeb4a03c7682ae2db2ab45af99daf9dace28c00821 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent5637c4ca961bc72ae3cce4bd5cbcecb5b8e32a54 (diff)
ath11k: 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: [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