Commit bc44143
committed
smex: bound the extended manifest walk
The extended-manifest walk advanced by an element size read from the
section without validating it, so a zero size looped forever and a large
size read past the section. Stop on a zero size or one that would leave
the section.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent c4d2876 commit bc44143
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
0 commit comments