Fix UB in mergeTreeAnalyzeIndexes() in case of invalid optimizations argument#101253
Conversation
|
Workflow [PR], commit [5189a33] Summary: ❌
AI ReviewSummaryThis PR hardens ClickHouse Rules
Final Verdict
|
LLVM Coverage Report
Changed lines: 92.00% (46/50) · Uncovered code |
|
|
18780c7
|
Hi — this PR may need backporting to release branches Why: This fixes UB (out-of-bounds array access) in mergeTreeAnalyzeIndexes that could cause crashes on invalid input. The table function has existed since before 25.8. The fix is small and safe to backport. If this should be backported, consider adding |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix UB in mergeTreeAnalyzeIndexes() in case of invalid optimizations argument
CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100901&sha=ea7a8e3f184a84849d198bb1a3666bf257a81f82&name_0=PR&name_1=Stress%20test%20%28arm_ubsan%29