Repository navigation
Bump contrib/thrift to Apache Thrift v0.24.0 - #111278
Conversation
Point contrib/thrift at the ClickHouse/thrift ClickHouse/v0.24.0 branch
(13d30d6a): Apache Thrift v0.24.0 with the ClickHouse patch f95a731b
("Don't use locale in to_string") cherry-picked.
v0.24.0 includes Apache commit 983c813c, which widens the compact-protocol
container-size prechecks to int64 (static_cast<int64_t>(size_) * elemSize),
fixing a signed-integer overflow on wire-controlled sizes. This is the
upstream fix for UBSan finding STID 3543-4a91, superseding the ubsan_ignorelist
approach from ClickHouse#111186 (closed) as suggested by @pamarcos.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-author-slot-2:20260721-190200 |
|
Workflow [PR], commit [c3dd844] Summary: ✅
AI ReviewSummaryReviewed the Final Verdict✅ No new blocking issues found. No inline review comments posted. |
CI finish ledger — 4de8362Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
Session id: cron:our-pr-ci-monitor:20260722-023000 |
|
Fixing PR for the The failure is the plain-rewritable |
CI finish ledger — c3dd844Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20260729-043000 |
34686a7
|
@thevar1able is it possible to backport this changes to 25.8? as there are bunch of CVE's need to be fixed. |
Backport #111278 to 26.7: Bump contrib/thrift to Apache Thrift v0.24.0
Backport #111278 to 26.6: Bump contrib/thrift to Apache Thrift v0.24.0
Cherry pick #111278 to 25.8: Bump contrib/thrift to Apache Thrift v0.24.0
Cherry pick #111278 to 26.3: Bump contrib/thrift to Apache Thrift v0.24.0
Cherry pick #111278 to 26.5: Bump contrib/thrift to Apache Thrift v0.24.0
Backport #111278 to 26.3: Bump contrib/thrift to Apache Thrift v0.24.0
Backport #111278 to 25.8: Bump contrib/thrift to Apache Thrift v0.24.0
Backport #111278 to 26.5: Bump contrib/thrift to Apache Thrift v0.24.0
Resolves the one conflict in the automated cherry-pick, `contrib/thrift`. 26.3 already carries Apache Thrift v0.24.0, backported as #111278, while #98882 was the earlier step that moved master from v0.16.0 to v0.22.0. Taking the cherry-picked side would downgrade the submodule, so ours is kept: 26.3 and master both stay on 13d30d6a6cdf (v0.24.0). Everything else merged cleanly. `MergeTreeRangeReader.cpp` and `MergeTreeReadTask.h` come out unchanged because the text-index prewhere fix that rides along with this PR is already on 26.3, so git recognised it as applied rather than dropping it. Original pull-request: #98882 Cherry-pick pull-request: #122872 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Updated the bundled Apache Thrift library to version 0.24.0.
Description
Bumps
contrib/thriftfrom theClickHouse/v0.23.0lineage (248688d4) to theClickHouse/v0.24.0branch (13d30d6a), which is Apache Thriftv0.24.0with theClickHouse/-specific patchf95a731b("Don't use locale in to_string") cherry-picked on top. TheClickHouse/v0.24.0branch was created by @thevar1able.v0.24.0includes Apache commit983c813c, which fixes a signed-integer overflow in the compact-protocol container-size prechecks:checkReadBytesAvailable(TSet/TList/TMap)now computesstatic_cast<int64_t>(size_) * elemSizeinstead ofint32 * int.size_is read from the wire (corrupt/fuzzed Parquet/ORC metadata), so a large declared cardinality previously overflowed signedint. This is the proper upstream fix (with its own regression tests) for the UBSan finding STID 3543-4a91 that closed PR #111186 tried to silence viatests/ubsan_ignorelist.txt.This supersedes the ignorelist approach from #111186 (closed), per @pamarcos's suggestion to sync the fork to
v0.24.0. Fork-side sync was done in ClickHouse/thrift#10; the release branch was ultimately created directly by @thevar1able.master'stests/ubsan_ignorelist.txthas no Thrift entry (it only existed on #111186's branch), so nothing needs to be removed here.UBSan report that surfaced the overflow: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110171&sha=b3699207b14e085180bef427dac73696403b023c&name_0=PR&name_1=Stress%20test%20%28arm_asan_ubsan%2C%20s3%29
Verified locally that ClickHouse still builds and links Thrift and Arrow (the Parquet/ORC consumer) against the new tree.
Version info
26.8.1.385(included in26.8and later)26.7.2.43,26.6.2.130,26.5.6.112,26.3.17.104,25.8.29.48