diff options
author | 2020-03-11 10:04:26 +0100 | |
---|---|---|
committer | 2020-03-14 14:32:04 +0100 | |
commit | 6d3fbe919b839bae9d8ed22b4ae5a17b05cb209e (patch) | |
tree | 979cca5bcec42f3039a78ee882bf3c91719f378b /lib/test_overflow.c | |
parent | pcmcia: omap: remove useless cast for driver.name (diff) | |
download | wireguard-linux-6d3fbe919b839bae9d8ed22b4ae5a17b05cb209e.tar.xz wireguard-linux-6d3fbe919b839bae9d8ed22b4ae5a17b05cb209e.zip |
pcmcia: 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().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions