Skip to content

fix result buffer overrun in decode-only benchmark - #4714

Open
saleemno1 wants to merge 1 commit into
facebook:devfrom
saleemno1:decode-bench-result-overflow
Open

fix result buffer overrun in decode-only benchmark#4714
saleemno1 wants to merge 1 commit into
facebook:devfrom
saleemno1:decode-bench-result-overflow

Conversation

@saleemno1

Copy link
Copy Markdown

the decode-only path in BMK_benchMemAdvancedNoAlloc advances resPtr by each frame's compressed size while the result buffer is only sized for the sum of decompressed sizes, so benchmarking several frames whose content is smaller than the frame (e.g. many tiny .zst files) overruns it; advancing by resSizes[chunkID] fixes the layout and is a no-op for the compress path where it already equals chunkSize.

@meta-cla meta-cla Bot added the CLA Signed label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant