March 6, 2026
10:39 a.m.
``` It is assumed when calling wg_parser_stream_copy_buffer() the info in stream->map_info is for the buffer being copied. After a dynamic format change flushes stream->buffer, the null check in wg_parser_stream_copy_buffer() is insufficient because a new buffer may arrive before copying occurs. Assertion failure occurs if that buffer is smaller, and in any case, the copied data may be incompatible. ``` This sounds like a frontend bug. After a dynamic format change, the buffer *will* be wrong, and we shouldn't try to copy it. Looking at the code though, we don't? We do call release_buffer, which is probably wrong. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10256#note_131471