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 race due unprotected access to callbacks_ in roscpp client #1595

Merged

Conversation

igor-semenov
Copy link
Contributor

Access to callbacks_ in Publication::peerConnect() and Publication::peerDisconnect() is not protected with mutex, so if other thread removes callback while call to one of these functions, we may fall into SEGFAULT, trying to access via invalid iterator.

@dirk-thomas
Copy link
Member

Thank you for the fix.

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

Successfully merging this pull request may close these issues.

2 participants