Commit 01a0eed
committed
rimage: avoid reading past the buffer scanning for the marker
The marker scan read a 32-bit word at each offset up to the last byte,
reading a few bytes past the buffer at the tail. Stop once fewer than a
word remains, in both scan sites.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 9ba74f6 commit 01a0eed
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
1681 | | - | |
| 1681 | + | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
| |||
0 commit comments