Commit af6c200
tplg: reject undersized process private data
The private-data size had the ABI header length subtracted without
checking it was at least that large, underflowing the computed size.
Reject private data smaller than the header in both append paths.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 6767965 commit af6c200
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
184 | 189 | | |
185 | 190 | | |
186 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| |||
0 commit comments