Skip to content

Use saturating_sub when calculating swf header size to prevent panic#23324

Open
SuchAFuriousDeath wants to merge 2 commits intoruffle-rs:masterfrom
SuchAFuriousDeath:loaded_bytes_overflow
Open

Use saturating_sub when calculating swf header size to prevent panic#23324
SuchAFuriousDeath wants to merge 2 commits intoruffle-rs:masterfrom
SuchAFuriousDeath:loaded_bytes_overflow

Conversation

@SuchAFuriousDeath
Copy link
Copy Markdown
Collaborator

Fixes #23323

@Lord-McSweeney Lord-McSweeney added T-fix Type: Bug fix (in something that's supposed to work already) A-core Area: Core player, where no other category fits labels Mar 24, 2026
Comment thread core/src/display_object/movie_clip.rs Outdated
@kjarosh
Copy link
Copy Markdown
Member

kjarosh commented Apr 13, 2026

Just for the record, we talked about this on Discord: we need two tests, one where the reported size is bigger than the real size, and one where it's smaller.

@kjarosh kjarosh added waiting-on-author Waiting on the PR author to make the requested changes labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-author Waiting on the PR author to make the requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on Strong_Bad_Email_027_3_Wishes.swf

3 participants