Skip to content

Backport fix for IPv6StringToNumOrDefault to 25.8 - #104577

Merged
Avogar merged 1 commit into
ClickHouse:25.8from
Avogar:backport/25.8/93543
May 12, 2026
Merged

Avogar merged 1 commit into
ClickHouse:25.8from
Avogar:backport/25.8/93543

Conversation

@Avogar

@Avogar Avogar commented May 11, 2026 •

Copy link
Copy Markdown
Member

Backport a fix from #93543

Fix IPv6StringToNumOrDefault not properly zeroing output bytes on parse failure. Only one byte was zeroed (vec_res[i] = 0) instead of all 16 bytes (std::fill_n(&vec_res[out_offset], offset_inc, 0)), causing stale data from previous successful parses to leak into default results.


Changelog category: Bug Fix (user-visible misbehavior in an official stable release)
Changelog entry: Fixed IPv6StringToNumOrDefault returning incorrect results when mixed valid and invalid IPv6 strings were processed in the same batch.

Version info

  • Merged into: 25.8.24.9

Fix `IPv6StringToNumOrDefault` not properly zeroing output bytes on parse
failure. Only one byte was zeroed (`vec_res[i] = 0`) instead of all 16
bytes (`std::fill_n(&vec_res[out_offset], offset_inc, 0)`), causing
stale data from previous successful parses to leak into default results.

Backport of ClickHouse#93543

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f05c134]

@Avogar
Avogar merged commit 3991b41 into ClickHouse:25.8 May 12, 2026
32 of 35 checks passed
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.

1 participant