Commit c4d2876
committed
smex: reject undersized fw-ready section
The fw-ready section was cast to a struct and field-read without
checking its size, reading past a short section. Reject a section
smaller than the struct.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent ed62cc6 commit c4d2876
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
0 commit comments