diff options
| author | Lucy Thrun <lucy.thrun@digital-rabbithole.de> | 2025-06-10 19:50:12 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-06-10 20:24:02 +0200 |
| commit | a409c60111e6bb98fcabab2aeaa069daa9434ca0 (patch) | |
| tree | 1dd575668bfa8a9bd59d9a83aa5d94a7ed2dbe6e /rust/helpers/device.c | |
| parent | 165bb5b154de4c39c3aa9962f0dd69836d030c19 (diff) | |
ALSA: hda/ca0132: Fix buffer overflow in add_tuning_control
The 'sprintf' call in 'add_tuning_control' may exceed the 44-byte
buffer if either string argument is too long. This triggers a compiler
warning.
Replaced 'sprintf' with 'snprintf' to limit string lengths to prevent
overflow.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506100642.95jpuMY1-lkp@intel.com/
Signed-off-by: Lucy Thrun <lucy.thrun@digital-rabbithole.de>
Link: https://patch.msgid.link/20250610175012.918-3-lucy.thrun@digital-rabbithole.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'rust/helpers/device.c')
0 files changed, 0 insertions, 0 deletions
