From acf14afd58548ceaa9e61d7eaeb75ae5d0555f7e Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Tue, 28 Oct 2025 11:37:02 -0700 Subject: [PATCH] src/syscall: update src buffer after write Fixes #5012 --- src/syscall/libc_wasip2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syscall/libc_wasip2.go b/src/syscall/libc_wasip2.go index 5621c1a683..7d0dd63cf4 100644 --- a/src/syscall/libc_wasip2.go +++ b/src/syscall/libc_wasip2.go @@ -212,6 +212,7 @@ func writeStream(stream *wasiStream, buf *byte, count uint, offset int64) int { return -1 } remaining -= len + src = src[len:] } return int(count)