commit | 8d8a50e20dc2dc41cb788085968b9024dc36f7a5 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 09:50:37 2020 +0100 |
committer | Keith Busch <kbusch@kernel.org> | Thu Mar 26 04:51:55 2020 +0900 |
tree | caa01ad16a92349a4344da6e114f49cb484a970f | |
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>