Commit 6d5cf82
committed
audio: data_blob: reject first_block while transfer in progress
ipc4_comp_data_blob_set() had no busy check, so a new
first_block received mid-transfer skipped reallocation but still
updated new_data_size, defeating the memcpy_s bound and allowing
a host-controlled heap overflow. Reject it with -EBUSY,
mirroring comp_data_blob_set() and comp_data_blob_set_cmd().
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 06900eb commit 6d5cf82
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
333 | 341 | | |
334 | 342 | | |
335 | 343 | | |
| |||
0 commit comments