summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 08:44:39 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-12 14:39:05 +0100
commit7cd37a0006b0489c3e6cc766b1b3f3d5e4c3a4f2 (patch)
tree067f177c9a9442c7885af19d37f3424d4a71e4e3 /drivers/block
parentblock: aoe: Use scnprintf() for avoiding potential buffer overflow (diff)
downloadlinux-7cd37a0006b0489c3e6cc766b1b3f3d5e4c3a4f2.tar.xz
linux-7cd37a0006b0489c3e6cc766b1b3f3d5e4c3a4f2.zip
lightnvm: pblk: 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>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions