Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcm: ioplug: Limit transfer size to buffer boundary
Commit 1714332 introduced 2nd transfer() call to transfer all remaining available frames. If the prior calculated avail value exceeds the buffer size a too large size value is passed to the underlaying plugin and results in memory corruption if not blocked by plugin internally. Avail values > buffer size can happen if e.g. xrun detection is disabled, as avail is calculated by pure difference between hw and app position. This patch limits 2nd transfer call to remaining rest of a buffer size. Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
- Loading branch information