diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 09:50:37 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2020-03-26 04:51:55 +0900 |
commit | 8d8a50e20dc2dc41cb788085968b9024dc36f7a5 (patch) | |
tree | caa01ad16a92349a4344da6e114f49cb484a970f /drivers/nvme/target | |
parent | 764e9332098c0e60251386a507fe46ac91276120 (diff) |
nvme-fabrics: 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().
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/target')
0 files changed, 0 insertions, 0 deletions