Commit 36aa1dc
rimage: bound string table lookups to the section size
A symbol name was duplicated from the string table without verifying a
terminator within the section, so an unterminated table could be read
past its end. Validate the index and bound the length to the section.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent f58d583 commit 36aa1dc
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
535 | 547 | | |
| 548 | + | |
536 | 549 | | |
537 | | - | |
| 550 | + | |
538 | 551 | | |
539 | 552 | | |
540 | 553 | | |
| |||
0 commit comments