commit | a900cc5cd846edc6964736834e098e88d7ecfcd6 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:11:00 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Mar 12 07:38:47 2020 -0600 |
tree | f99463cc1a76303de4583420096b05ad1841a927 | |
parent | 2c523b344dfa65a3738e7039832044aa133c75fb [diff] |
libata: transport: 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: Jens Axboe <axboe@kernel.dk>