Home
last modified time | relevance | path

Searched hist:b450b30b97010e5c68ab522c6f6c54ef76bd0683 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/firmware/efi/
H A Dcper.cdiff b450b30b97010e5c68ab522c6f6c54ef76bd0683 Thu Apr 09 08:04:26 CDT 2020 Takashi Iwai <tiwai@suse.de> 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