Commit 9b78475
committed
ipc4: helper: bound host TLV length in DMA config walk
Reject a gateway-config TLV whose length overruns the buffer
so the uintptr_t walk cannot wrap past the low address space.
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>1 parent 3f7738d commit 9b78475
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1302 | 1302 | | |
1303 | 1303 | | |
1304 | 1304 | | |
1305 | | - | |
| 1305 | + | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
| 1309 | + | |
1310 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1311 | 1317 | | |
1312 | 1318 | | |
1313 | 1319 | | |
| |||
0 commit comments