Commit 2078f8b
committed
volume: validate init payload covers per-channel config
Init read a per-channel config array sized by the channel count from the
init payload without checking the payload was large enough, reading past
the mailbox. Require the payload to cover the base config and all
per-channel entries.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 31590ac commit 2078f8b
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
0 commit comments