Commit 158c284
committed
rimage: fix inverted hash output buffer size check
The output-buffer guard was reversed: it rejected oversized buffers and
accepted undersized ones, so a short output buffer could be overflowed
by the digest write. Reject when the buffer is smaller than the digest.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 6b63cf4 commit 158c284
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
0 commit comments