Skip to content

Bump snappy from 1.2.2 to 1.3.1 - #128311

Merged
thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-snappy-1.3.1
Oct 31, 2026
Merged

thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-snappy-1.3.1

Conversation

@actueleai

@actueleai actueleai commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Bump snappy from 1.2.2 to 1.3.1, which fixes a uint32_t overflow in the decompressor when it accepts malformed or truncated input.

ClickHouse-side changes

  • contrib/snappy-cmake/CMakeLists.txt — set the new SNAPPY_RVV_1 and SNAPPY_RVV_0_7 to 0, alongside the existing NEON/BMI2 zeros: this file hardcodes the config.h values and the riscv64 toolchain sets no -march, so the vector paths would not build.

Fork

3 patches carried (recursive-submodule removal, snappy.h include-guard fix, upstream tests/benchmarks disabled), rebased onto 1.3.1 in ClickHouse/snappy#6.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update snappy from 1.2.2 to 1.3.1.


Workflow [PR]
Sync PR [sync-upstream/pr/128311]

Version info

  • Merged into: 26.11.1.953-master (included in 26.11 and later)

Update the fork pin to ClickHouse/snappy branch ClickHouse/1.3.1
(c78b4aad6403), which carries the ClickHouse patch series rebased onto
upstream 1.3.1: recursive submodule removal, the `snappy.h` and
`snappy_test_data.h` include-guard fix, and upstream tests/benchmarks
disabled.

Adapt contrib/snappy-cmake/CMakeLists.txt to the new cmake/config.h.in:
set the new `SNAPPY_RVV_1` and `SNAPPY_RVV_0_7` feature flags explicitly
to 0, since the riscv64 build does not target the vector extension.

Co-Authored-By: Claude Code <[email protected]>
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Oct 30, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3249b65]

Summary: ✅


AI Review

Summary

Updates snappy from 1.2.2 to 1.3.1 and disables unsupported RISC-V vector paths in the ClickHouse build configuration. No actionable findings. Focused standalone AArch64 checks reproduced malformed-input acceptance before the update and rejection afterward; valid-data round trips passed and produced identical compressed bytes across both versions.

Final Verdict

Status: ✅ Approve.

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. labels Oct 30, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 3249b6562 with master 2eafca8a6 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of cc5af2c4d; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

24 translation units recompiled, 61 s compile time in total, 24 of them have a recent master baseline.

Job report

@thevar1able
thevar1able added this pull request to the merge queue Oct 31, 2026
Merged via the queue into ClickHouse:master with commit f3b8b7a Oct 31, 2026
179 checks passed
@thevar1able
thevar1able deleted the bump-snappy-1.3.1 branch October 31, 2026 03:36
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. pr-build Pull request with build/testing/packaging improvement pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants