Commit 6b63cf4
committed
rimage: bound extended manifest header read to the section
The extended-manifest validator copied a fixed header from an offset
that could leave fewer than a header's worth of bytes, reading past the
section. Require a whole header to remain before the copy.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent e8c1ff9 commit 6b63cf4
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
153 | | - | |
154 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
155 | 164 | | |
156 | | - | |
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
| |||
0 commit comments