Commit 9105ea4
committed
smart_amp: bound get-config copy by config struct size
The config read-back used the stored config size as the memcpy source
length from a fixed-size struct; a host-set oversized size read adjacent
heap. Bound the length by the struct size as well as the destination.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 23126a2 commit 9105ea4
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| |||
0 commit comments