summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorwangdicheng <wangdicheng@kylinos.cn>2026-06-03 17:11:00 +0800
committerTakashi Iwai <tiwai@suse.de>2026-06-04 10:15:09 +0200
commit537153aaafa94efe77efd566eada7dbab9fb76dd (patch)
tree8d6ef28e4ab0a2fc81625bd5f7d0dc986a131aef /include/linux/timerqueue.h
parentaddf2286331adc72a81de2179887671ecbf9f314 (diff)
ALSA: usb-audio: qcom: Use snprintf for mixer control name formatting
The current code uses sprintf() to format control names without bounds checking, which could lead to buffer overflow if PCM index is large. Replace sprintf with snprintf to ensure buffer safety. The ctl_name buffer is 48 bytes, and the formatted string could exceed this with large PCM index values. Using snprintf with sizeof(ctl_name) prevents potential buffer overflow. Signed-off-by: wangdicheng <wangdicheng@kylinos.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260603091102.231370-2-wangdich9700@163.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions