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 heap-use-after-free in ClusterCopier #5871

Merged
merged 1 commit into from Jul 5, 2019

Conversation

KochetovNicolai
Copy link
Member

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

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Fixed heap-use-after-free ASan warning in ClusterCopier caused by watch which try to use already removed copier object.

Detailed description (optional):
Happened because task_description_watch_callback captured this on ClusterCopier and used this->log. ClusterCopier was removed before zookeeper (which is held by context), so watch could use already removed object.

@KochetovNicolai KochetovNicolai added the pr-bugfix Pull request with bugfix, not backported by default label Jul 4, 2019
@KochetovNicolai KochetovNicolai merged commit bc1e9df into master Jul 5, 2019
abyss7 pushed a commit that referenced this pull request Jul 11, 2019
…fter-free

Fix heap-use-after-free in ClusterCopier

(cherry picked from commit bc1e9df)
@abyss7 abyss7 added the v19.10 label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants