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

[ntcore] Fix crash on disconnect #5788

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

PeterJohnson
Copy link
Member

@PeterJohnson PeterJohnson commented Oct 19, 2023

The object was being destroyed in the middle of a send due to the error handling path closing the connection. Instead, defer to the next loop cycle using a one-shot timer.

Properly handle error return values from Send functions.

Fix UB in accessing one past the end of a vector.

@PeterJohnson PeterJohnson requested a review from a team as a code owner October 19, 2023 06:11
The object was being destroyed due to the error handling path.
Instead, defer to the next loop cycle using a one-shot timer.

Properly handle error return values from Send functions.

Fix UB in accessing one past the end of a vector.
@PeterJohnson PeterJohnson merged commit 7c6fe56 into wpilibsuite:main Oct 19, 2023
26 checks passed
@PeterJohnson PeterJohnson deleted the fix-nt-crash branch October 19, 2023 21:36
This pull request was closed.
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.

1 participant