Repository navigation
Fix UBSan report in arraySlice and substring - #19459
Merged
Merged
Conversation
azat
reviewed
Jan 22, 2021
| @@ -0,0 +1 @@ | |||
| SELECT arraySlice(groupArray(x), -9223372036854775808, NULL) AS y FROM (SELECT '6553.5', uniqState(NULL) AS x FROM numbers(3) GROUP BY number); | |||
Member
There was a problem hiding this comment.
There is also UB for select arraySlice([], -9223372036854775808) (in sliceDynamicOffsetUnbounded)
Member
|
I have similar patch, likely I did not submit PR yet, but I noticed one more UB: Looks like it is OK to add |
Member
Author
|
Could you please submit the PR nevertheless? Yes, it's Ok to add NO_SANITIZE_UNDEFINED. |
azat
added a commit
to azat/ClickHouse
that referenced
this pull request
Jan 22, 2021
- arraySlice([], INT64_MIN) -- FunctionArraySlice::executeImpl Found with fuzzer [1]. [1]: https://clickhouse-test-reports.s3.yandex.net/19378/2c42600cf9bd8e9962b5b5a0ebb4bf11a10887ea/fuzzer_ubsan/report.html#fail1 v2: removed fixes that is already included into ClickHouse#19459 - arraySlice(groupArray([]), INT64_MIN) -- sliceDynamicOffsetUnbounded
Member
Sure - #19466 P.S. I've removed bits that you have already addressed |
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):
https://clickhouse-test-reports.s3.yandex.net/19378/2c42600cf9bd8e9962b5b5a0ebb4bf11a10887ea/fuzzer_ubsan/server.log
https://clickhouse-test-reports.s3.yandex.net/19442/ccf332ea7e459a28c6d05b90d2783aad831b91ea/fuzzer_ubsan/server.log