Commit 497c960
committed
smex: bound section name offsets to the string table
Section names are used as offsets into the string table; an out-of-range
name offset from a crafted ELF read past the table. Validate every
section name offset against the string-table size after loading the
sections.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent a12a275 commit 497c960
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
0 commit comments