Skip to content

Fix trash in TokenExtractor - #93663

Merged
alexey-milovidov merged 5 commits into
masterfrom
fix-msan-tokeniterator
Jan 9, 2026
Merged

alexey-milovidov merged 5 commits into
masterfrom
fix-msan-tokeniterator

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC) or LOGICAL_ERROR

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

The usage of ngram_bf index on a non-UTF-8 data led to an uninitialized memory read, with values that could reside in the resulting index structure. Closes #92576.

@clickhouse-gh

clickhouse-gh Bot commented Jan 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1b483c0]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_asan, targeted) failure
03238_create_or_replace_view_atomically_with_replicated_engine FAIL cidb, issue
02473_multistep_prewhere FAIL cidb, issue
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, parallel) failure
01396_inactive_replica_cleanup_nodes_zookeeper FAIL cidb

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Jan 8, 2026
@ahmadov ahmadov self-assigned this Jan 8, 2026
Comment thread src/Functions/ngrams.cpp Resolved
@ahmadov
ahmadov enabled auto-merge January 8, 2026 10:22
@ahmadov
ahmadov disabled auto-merge January 8, 2026 10:23
Comment thread src/Functions/ngrams.cpp Resolved
Comment thread src/Interpreters/ITokenExtractor.cpp Resolved
@alexey-milovidov
alexey-milovidov merged commit f9fc3b2 into master Jan 9, 2026
126 of 128 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-msan-tokeniterator branch January 9, 2026 03:10
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 9, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jan 9, 2026
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 26, 2026
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 26, 2026
Applied the buffer-length checks in stable-25.8's pointer style (`*pos`, `*token_length`) and dropped the `SparseGramsTokenExtractor` code, which doesn't exist on this branch.
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 26, 2026
Rewrote the PR's bounds checks for 25.8's pointer-based extractor API (`size_t *` instead of `size_t &`); left out the `SparseGramsTokenExtractor` hunk because that class doesn't exist on 25.8.
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 27, 2026
Antalya 25.8 Backport of ClickHouse#93663 - Fix trash in `TokenExtractor`
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 27, 2026
Stable 25.8 Backport of ClickHouse#93663 - Fix trash in `TokenExtractor`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MemorySanitizer: use-of-uninitialized-value (STID: 1003-358c)

6 participants