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 handling of unimplemented method #1563

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

Airyzz
Copy link
Contributor

@Airyzz Airyzz commented Apr 11, 2024

Fixes #1504
Fixes #1525

This fixes an issue in the handling of unimplemented methods.

Because all unimplemented methods result in a call to HandleFrameCryptorMethodCall, which contains a move on the result pointer, if we later try to call result.NotImplemented it fails because result pointer was nullified during this move

} else if (HandleFrameCryptorMethodCall(method_call, std::move(result))) {

This fixes the issue by moving result back out of the function call in the case of HandleFrameCryptorMethodCall fails. Not sure how we feel about using out parameters like this, but this felt like the simplest fix to me. Open to suggestions for alternatives!

Copy link
Member

@cloudwebrtc cloudwebrtc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cloudwebrtc cloudwebrtc merged commit dcb823a into flutter-webrtc:main Apr 12, 2024
7 checks passed
VladimirBrejcha pushed a commit to sergeynekrasov8430/flutter-webrtc that referenced this pull request Apr 27, 2024
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.

Flutter Desktop App Getting Crashed When Joining a Call [DESKTOP] App Crashes When Making a Call
2 participants