Commit a0e659f
committed
audio: copier: fix memcpy_s dest_size in copier_set_gain
The first memcpy_s call passed gain_coef_size
(= channels * sizeof(uint16_t), host-controlled) as
the dest_size argument, defeating the bounds check.
Pass sizeof(static_gain) — the true buffer capacity
so memcpy_s can enforce the limit.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 3c51666 commit a0e659f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments