8000
Skip to content

fix(cctx): Reset dict_size in compression context - #351

Merged
hellobertrand merged 1 commit into
mainfrom
fix/cctx-dict-size-reset
Jul 31, 2026
Merged

fix(cctx): Reset dict_size in compression context#351
hellobertrand merged 1 commit into
mainfrom
fix/cctx-dict-size-reset

Conversation

@hellobertrand
Copy link
Copy Markdown
Owner

The zxc_compress_cctx function now explicitly resets cctx->inner.dict_size to 0 to ensure a consistent initial state for every compression operation. This prevents potential issues where a reused context might carry over an incorrect dictionary size from a previous operation.

Additionally, the benchmark workflow is updated to clone the official inikep/lzbench repository. This ensures that performance benchmarks are conducted against the standard lzbench tool, aligning with general development and testing practices.

The `zxc_compress_cctx` function now explicitly resets `cctx->inner.dict_size` to `0` to ensure a consistent initial state for every compression operation. This prevents potential issues where a reused context might carry over an incorrect dictionary size from a previous operation.

Additionally, the benchmark workflow is updated to clone the official `inikep/lzbench` repository. This ensures that performance benchmarks are conducted against the standard `lzbench` tool, aligning with general development and testing practices.
@hellobertrand hellobertrand added the bug Something isn't working label Jul 31, 2026
@sonarqubecloud
sonarqubecloud Bot commented Jul 31, 2026
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@codecov
codecov Bot commented Jul 31, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hellobertrand
hellobertrand merged commit 5a53bf1 into main Jul 31, 2026
90 checks passed
@hellobertrand
hellobertrand deleted the fix/cctx-dict-size-reset branch July 31, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0