aboutsummaryrefslogtreecommitdiff
path: root/lib/clz_tab.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-11 09:50:37 +0100
committerKeith Busch <[email protected]>2020-03-26 04:51:55 +0900
commit8d8a50e20dc2dc41cb788085968b9024dc36f7a5 (patch)
treecaa01ad16a92349a4344da6e114f49cb484a970f /lib/clz_tab.c
parent764e9332098c0e60251386a507fe46ac91276120 (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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions