Skip to content

Carry the ClickHouse patches onto 2026e - #15

Merged
thevar1able merged 4 commits into
ClickHouse:ClickHouse/2026efrom
actueleai:ClickHouse/2026e
Oct 6, 2026
Merged

thevar1able merged 4 commits into
ClickHouse:ClickHouse/2026efrom
actueleai:ClickHouse/2026e

Conversation

@actueleai

Copy link
Copy Markdown

This carries the four ClickHouse patches onto upstream's tzdata 2026e update (18923c7, Update zoneinfo files to 2026e (#382)) — upstream has no 2026e tag, so the base is that master commit, which the existing ClickHouse/2026e branch 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 the file: prefix in time zone names (Konstantin Bogdanov).

All four patches are kept — none is obsolete; the file:-prefix rejection still guards the timeZone setting / load_time_zone path beyond upstream's own UnsafePath checks. No conflicts arose: two picks auto-merged, in src/time_zone_info.cc and src/time_zone_lookup_test.cc, with the original intent preserved.

Once merged, ClickHouse's contrib/cctz submodule is bumped to this branch head.

alexey-milovidov and others added 4 commits October 6, 2026 14:41
(cherry picked from commit d8b189e)
(cherry picked from commit 234d5aa)
(cherry picked from commit b3e60aa)
(cherry picked from commit 1292bd7)
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
thevar1able merged commit fa5fe11 into ClickHouse:ClickHouse/2026e Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants