Searched hist:"23 ab5261" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | fault.c | 23ab5261 Thu Mar 19 10:46:41 CDT 2020 Takashi Iwai <tiwai@suse.de> IB/hfi1: 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().
Link: https://lore.kernel.org/r/20200319154641.23711-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> 23ab5261 Thu Mar 19 10:46:41 CDT 2020 Takashi Iwai <tiwai@suse.de> IB/hfi1: 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(). Link: https://lore.kernel.org/r/20200319154641.23711-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
|