From 93b940edef0bec7e0cd76eed6fca2bbb0e53002e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 8 May 2026 12:59:10 +0200 Subject: [PATCH] module-combine: limit size to buffer maxsize Limit the amount of data we write to the destination buffer to its maxsize. --- src/modules/module-combine-stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-combine-stream.c b/src/modules/module-combine-stream.c index 9a5776be5..2a08d7f3b 100644 --- a/src/modules/module-combine-stream.c +++ b/src/modules/module-combine-stream.c @@ -1226,6 +1226,7 @@ static void combine_input_process(void *d) offs = SPA_MIN(ds->chunk->offset, ds->maxsize); size = SPA_MIN(ds->chunk->size, ds->maxsize - offs); + size = SPA_MIN(size, dd->maxsize); ringbuffer_memcpy(&s->delay[j], dd->data, SPA_PTROFF(ds->data, offs, void), size);