Uh oh!
There was an error while loading. Please reload this page.
branch-3.0: [fix](ubsan) fix ubsan error in DataTypeHLL::serialize #50628 - #50668
Merged
Conversation
hello-stephen
commented
May 7, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
hello-stephen
commented
May 7, 2025
Contributor
run buildall |
hello-stephen
commented
May 7, 2025
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
ContributorAuthor
PR approved by at least one committer and no changes requested. |
ContributorAuthor
PR approved by anyone and no changes requested. |
### What problem does this PR solve? In the code below, if the column size is 0, an empty vector will be created. A vector with size 0 may return nullptr from data() https://en.cppreference.com/w/cpp/container/vector/data `If size() is 0, data() may or may not return a null pointer.` This would trigger a ubsan error: `null pointer passed as argument 2, which is declared to never be null` Other data types don't have this issue because they use Doris internal pod array that guarantees data won't be nullptr.
dataroaringforce-pushed
the
auto-pick-50628-branch-3.0
branch
from
May 13, 2025 14:12
a640332 to
7990a70Comparedataroaring
commented
May 14, 2025
Contributor
run buildall |
doris-robot
commented
May 14, 2025
TPC-H: Total hot run time: 40050 ms |
hello-stephen
commented
May 14, 2025
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
May 14, 2025
TPC-DS: Total hot run time: 196780 ms |
doris-robot
commented
May 14, 2025
ClickBench: Total hot run time: 31.56 s |
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 freeto 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.
Cherry-picked from #50628