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 crashes caused by uninitialized beginCalled #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbergen
Copy link

@rbergen rbergen commented Dec 1, 2023

This initializes GifDecoder::beginCalled to false, to prevent storeProhibited panics that can occur further down the line due to the call to AnimatedGIF::begin() not taking place.

A discussion of the crashes caused by the bug this PR fixes can be found from this comment on PlummersSoftwareLLC/NightDriverStrip#547 onwards, as well as the PRs that the comments in that discussion link to.

Fixes AV by initializing things properly
@robertlipe
Copy link

I'm not sure why it doesn't show, but the comment at
17f5678#commitcomment-133982736
may be useful to a reviewer.

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