Commit a8c1a5e
committed
audio: data_blob: fix memcpy_s bounds in ipc4_comp_data_blob_set
Pass the real destination capacity instead of the copy count
so the size check is effective, preventing
a host-controlled heap overflow of data_new.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 3f7738d commit a8c1a5e
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| |||
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
394 | | - | |
395 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
| |||
0 commit comments