Commit 6f3f607
committed
ASoC: SOF: amd: sanity-check decoded ACP7 signed firmware length
After reading SizeFWSigned and adding the header size, the resulting
length must be non-zero and must not exceed the firmware buffer we were
given. Reject corrupt headers or truncated images before starting SHA
DMA.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>1 parent 1296f81 commit 6f3f607
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
0 commit comments