Repository navigation
Fix potential out-of-bounds read in the ALP codec decompression - #103457
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [4b99e3c] Summary: ✅ AI ReviewSummaryThis PR adds a defensive check for invalid Missing context
ClickHouse Rules
Final Verdict
|
rienath
marked this pull request as ready for review
April 26, 2026 02:04
Merged
1 task done
Michicosun
reviewed
Apr 26, 2026
|
|
||
| printf '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\234\032\0\0\0\0\040\0\0\001\010\0\004\0\0\0\0A\0\0\0\0\0\0\0\0' \ | ||
| | ${CLICKHOUSE_CURL} "${CLICKHOUSE_URL}&decompress=1&http_native_compression_disable_checksumming_on_decompress=1" --data-binary @- \ | ||
| | grep -c "Cannot decompress ALP-encoded data, invalid bit-width: 65, max allowed: 64" |
Member
There was a problem hiding this comment.
Let's not grep the concrete error message and grep only the error code?
Member
Author
There was a problem hiding this comment.
Thanks, fixed. One reason to do this is to make sure test passes if we change error message. Are there any other ones that I am missing?
Michicosun
approved these changes
Apr 26, 2026
Contributor
LLVM Coverage Report
Changed lines: 100.00% (8/8) · Uncovered code |
robot-ch-test-poll
added a commit
that referenced
this pull request
May 5, 2026
Cherry pick #103457 to 26.3: Fix potential out-of-bounds read in the `ALP` codec decompression
robot-clickhouse
added a commit
that referenced
this pull request
May 5, 2026
…P` codec decompression
robot-ch-test-poll
added a commit
that referenced
this pull request
May 5, 2026
Cherry pick #103457 to 26.4: Fix potential out-of-bounds read in the `ALP` codec decompression
robot-clickhouse
added a commit
that referenced
this pull request
May 5, 2026
…P` codec decompression
alexey-milovidov
added a commit
that referenced
this pull request
May 5, 2026
Backport #103457 to 26.4: Fix potential out-of-bounds read in the `ALP` codec decompression
alexey-milovidov
added a commit
that referenced
this pull request
May 6, 2026
Backport #103457 to 26.3: Fix potential out-of-bounds read in the `ALP` codec decompression
1 task done
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…in the `ALP` codec decompression
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…3457 Backport ClickHouse#103457 to 26.4: Fix potential out-of-bounds read in the `ALP` codec decompression
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix potential out-of-bounds read in the
ALPcodec decompression path when processing malformed input with an invalid bit-width.Version info
26.5.1.26726.4.1.1137,26.3.10.59