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: Fix unreleased stack overflow on statechanged #5712

Merged
merged 2 commits into from Oct 3, 2023

Conversation

joeyparrish
Copy link
Member

Do not dispatch statechanged events unless there is an actual change. This fixes a stack overflow in the Cast proxy code triggered by statechanged events.

Do not dispatch statechanged events unless there is an actual change.
This fixes a stack overflow in the Cast proxy code triggered by
statechanged events.
@joeyparrish
Copy link
Member Author

Fixing the bug was fast. Figuring out how to write a regression test that fails without the fix... that took significantly longer. 😁

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release labels Oct 3, 2023
@avelad avelad added this to the v4.5 milestone Oct 3, 2023
@avelad avelad merged commit ebacf32 into shaka-project:main Oct 3, 2023
17 checks passed
@joeyparrish joeyparrish deleted the fix-cast-stack-overflow branch October 3, 2023 15:17
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Nov 30, 2023
Do not dispatch statechanged events unless there is an actual change.
This fixes a stack overflow in the Cast proxy code triggered by
statechanged events.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 2, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants