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

[C++] Archive Client AsyncConnect::poll: Avoid proceeding to step 1 until m_subscription is non-null #1196

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

vaci
Copy link
Contributor

@vaci vaci commented Jul 8, 2021

findSubscription() may return a null pointer that is used unchecked in step 1.

findSubscription() may return a null pointer that is used unchecked in step 1,
@vaci vaci changed the title Avoid proceeding to step 1 until m_subscription is non-null [C++] Archive Client AsyncConnect::poll: Avoid proceeding to step 1 until m_subscription is non-null Jul 8, 2021
@vaci
Copy link
Contributor Author

vaci commented Jul 8, 2021

We also note that the timeout exception might access m_subscription and m_publication before those pointers are assigned.

@tmontgomery
Copy link
Contributor

We also note that the timeout exception might access m_subscription and m_publication before those pointers are assigned.

If you want, add changes for these as well to this PR.

@vaci
Copy link
Contributor Author

vaci commented Jul 9, 2021

Added a patch for the timeout message.

@mjpt777 mjpt777 merged commit 38569ed into aeron-io:master Jul 9, 2021
@vaci vaci deleted the patch-1 branch October 9, 2023 14:40
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.

3 participants