summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/xilinx
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-04-09 15:04:26 +0200
committerIngo Molnar <mingo@kernel.org>2020-04-14 08:32:11 +0200
commitb450b30b97010e5c68ab522c6f6c54ef76bd0683 (patch)
treef8d6491f8bf1f1e867d50537b6606064419e2f33 /drivers/firmware/xilinx
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-b450b30b97010e5c68ab522c6f6c54ef76bd0683.tar.gz
linux-b450b30b97010e5c68ab522c6f6c54ef76bd0683.tar.bz2
linux-b450b30b97010e5c68ab522c6f6c54ef76bd0683.zip
efi/cper: 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: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200311072145.5001-1-tiwai@suse.de Link: https://lore.kernel.org/r/20200409130434.6736-2-ardb@kernel.org
Diffstat (limited to 'drivers/firmware/xilinx')
0 files changed, 0 insertions, 0 deletions