Repository navigation
Carry the ClickHouse patches onto 2026e - #15
Merged
thevar1able merged 4 commits intoOct 6, 2026
Merged
Conversation
Building ClickHouse on illumos throws an error on cctz. This happens because `month_t` is aliased to `int_fast8_t`, which is a plain char by default on illumos: https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/sys/int_types.h#L74-L78 This patch static_casts `month_t` to `int` before indexing into an array to avoid the error. (cherry picked from commit 8e694da) (cherry picked from commit 3050b8f)
`CheckTimeZoneName` runs on the raw name, but `FileZoneInfoSource::Open` strips the `file:` prefix before it builds the path. A name such as `file:/abs/path` therefore passes the leading `/` check and opens an arbitrary absolute path, which is exactly what the check is meant to prevent. The prefix is a test-only interface, so reject it outright. Add regression tests for the previously unchecked forbidden patterns and for the `file:` bypass, copying a zone outside of the zoneinfo directory so the rejection is not just a missing file. ClickHouse/ClickHouse#121367 Co-Authored-By: Claude Fable 5.1 <[email protected]> (cherry picked from commit ddb2b7d) (cherry picked from commit 8c87275)
thevar1able
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This carries the four ClickHouse patches onto upstream's tzdata 2026e update (
18923c7,Update zoneinfo files to 2026e (#382)) — upstream has no2026etag, so the base is that master commit, which the existingClickHouse/2026ebranch already points at. Original authors are preserved: Remove dependency on CoreFoundation library (Alexey Milovidov), Prevent arbitrary file open while loading timezone (avogar), Fix -Wchar-subscripts warning on illumos (Josh Carp), and Reject thefile:prefix in time zone names (Konstantin Bogdanov).All four patches are kept — none is obsolete; the
file:-prefix rejection still guards thetimeZonesetting /load_time_zonepath beyond upstream's ownUnsafePathchecks. No conflicts arose: two picks auto-merged, insrc/time_zone_info.ccandsrc/time_zone_lookup_test.cc, with the original intent preserved.Once merged, ClickHouse's
contrib/cctzsubmodule is bumped to this branch head.