async-compression icon indicating copy to clipboard operation
async-compression copied to clipboard

Fix: zstd decompression is truncated to the first frame in the stream

Open cormacrelf opened this issue 1 month ago • 6 comments

This fails with 131072 bytes read, which is coincidentally zstd's max block size. Bug discovered in https://github.com/facebook/buck2/pull/1103.

Clearly poll_read is returning "ready" with 0 bytes read when it should still be pending. I have not done a bisect to find when this bug comes from, but you could do it with a script to apply this commit as a patch at each bisect eval point.

cormacrelf avatar Oct 30 '25 00:10 cormacrelf