diff options
| author | Takashi Iwai <[email protected]> | 2020-04-09 15:04:26 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2020-04-14 08:32:11 +0200 |
| commit | b450b30b97010e5c68ab522c6f6c54ef76bd0683 (patch) | |
| tree | f8d6491f8bf1f1e867d50537b6606064419e2f33 /drivers/platform/surface/aggregator/controller.c | |
| parent | 8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff) | |
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 <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions