Skip to content

Conversation

@bbrto21
Copy link
Contributor

@bbrto21 bbrto21 commented Sep 29, 2022

  • Use a derived class to hold memory not guaranteed by StreamHandlerError.
  • This patch prevents crashes caused by dereferences to invalid memory.
  • Update version.

Signed-off-by: Boram Bae boram21.bae@samsung.com

@bbrto21
Copy link
Contributor Author

bbrto21 commented Sep 29, 2022

This PR is workaround for #351 (comment).
If the right solution is applied upstream, then I will revert it.

* Use a derived class to hold memory not guaranteed by StreamHandlerError.
* This patch prevents crashes caused by dereferences to invalid memory.

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
@bbrto21 bbrto21 changed the title Hold memories of StreamHandlerError's member Hold memory of StreamHandlerError's member Sep 30, 2022
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
@swift-kim
Copy link
Member

You may consider applying this to messageport_tizen, tizen_audio_manager, video_player_tizen, and wearable_rotary as well. They will need a bit of refactoring.

@bbrto21
Copy link
Contributor Author

bbrto21 commented Sep 30, 2022

You may consider applying this to messageport_tizen, tizen_audio_manager, video_player_tizen, and wearable_rotary as well. They will need a bit of refactoring.

I think packages you mentioned are too many to include this PR.
it would be better to open a PR that performs refactoring and apply this for each. If you don't mind, I'll go ahead with other PRs.

@bbrto21 bbrto21 merged commit 1384ad6 into flutter-tizen:master Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants