ref: 784021f41f97a65471d961d39474c85ba00318de
parent: a030e6958fdafd28a65dcc563981b378aaf87c09
author: Mans Rullgard <mans@mansr.com>
date: Thu Aug 27 09:04:25 EDT 2020
sunaudio: fix input buffer overrun The write loop should use the remaining input size, not the initial value.
--- a/src/sunaudio.c
+++ b/src/sunaudio.c
@@ -443,7 +443,7 @@
size_t cbStride;
int cbWritten;
- cStride = cInput;
+ cStride = cInputRemaining;
if (cStride > pPriv->cOutput) {
cStride = pPriv->cOutput;
}