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

core: Don't propagate error when decoding malformed PNG data (fixes #18831) #19863

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

Conversation

ninjamuffin99
Copy link

A bit unconfirmed fully, but my theory on #18831 is that Stencyl used to create malformed PNG data when generating BitmapFont images (relavant issue from Stencyl forums, and (3.4.0 (Beta 1) Build 8734 - October 10, 2015) mentions "Fix: Bitmap Font image importing")

This PR fixes the panic by handling the DecodingError and creating a transparent bitmap with the same dimensions as the source instead. This behavior I based off of HaxeFlixel / OpenFL, which does the same. Stencyl is based off much older versions of OpenFL / NME fwiw

…a transparent bitmap with the same dimensions instead (fixes ruffle-rs#18831)
@Lord-McSweeney Lord-McSweeney added A-rendering Area: Rendering & Graphics T-fix Type: Bug fix (in something that's supposed to work already) labels Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rendering Area: Rendering & Graphics T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants