diff options
| author | Junrui Luo <moonafterrain@outlook.com> | 2025-12-03 12:27:03 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-12-05 15:25:55 +0100 |
| commit | 210d77cca3d0494ed30a5c628b20c1d95fa04fb1 (patch) | |
| tree | 163906e43a94c22cca57bfd3ac4ef467d89c9732 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | c34b04cc6178f33c08331568c7fd25c5b9a39f66 (diff) | |
ALSA: firewire-motu: fix buffer overflow in hwdep read for DSP events
The DSP event handling code in hwdep_read() could write more bytes to
the user buffer than requested, when a user provides a buffer smaller
than the event header size (8 bytes).
Fix by using min_t() to clamp the copy size, This ensures we never copy
more than the user requested.
Reported-by: Yuhao Jiang <danisjiang@gmail.com>
Reported-by: Junrui Luo <moonafterrain@outlook.com>
Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
Link: https://patch.msgid.link/SYBPR01MB78810656377E79E58350D951AFD9A@SYBPR01MB7881.ausprd01.prod.outlook.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
