Re: [PATCH v2 1/2] vnc: fix VNC artifacts

2020-01-20 Thread Gerd Hoffmann
On Mon, Jan 20, 2020 at 09:00:51PM -0800, Cameron Esfahani wrote: > Patch de3f7de7f4e257ce44cdabb90f5f17ee99624557 was too simplistic in its > implementation: it didn't account for the ZLIB z_stream mutating with > each compression. Because of the mutation, simply resetting the output > buffer's

[PATCH v2 1/2] vnc: fix VNC artifacts

2020-01-20 Thread Cameron Esfahani via
Patch de3f7de7f4e257ce44cdabb90f5f17ee99624557 was too simplistic in its implementation: it didn't account for the ZLIB z_stream mutating with each compression. Because of the mutation, simply resetting the output buffer's offset wasn't sufficient to "rewind" the operation. The mutated z_stream