Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UB. #3910

Merged
merged 1 commit into from
Dec 24, 2018
Merged

Fix UB. #3910

merged 1 commit into from
Dec 24, 2018

Conversation

amosbird
Copy link
Collaborator

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Category (leave one):

  • Bug Fix

Short description (up to few sentences):

Fix UB in StorageMerge.

@alexey-milovidov
Copy link
Member

What is the mechanics of this change?
Why we can capture references in LazyBlockInputStream?

@amosbird
Copy link
Collaborator Author

Why we can capture references in LazyBlockInputStream?

I assume you mean why we can't?

Because those references will be invalid upon the first read attempt of the LazyBlockInputStream .

@alexey-milovidov
Copy link
Member

Ok.

@alexey-milovidov alexey-milovidov merged commit 659bb3f into ClickHouse:master Dec 24, 2018
@alexey-milovidov
Copy link
Member

Do you have a test case that fails under ASan or UBSan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants