Skip to content

tests: avm1: Add tests for jumping outside of DoAction tag#23160

Open
Randomno wants to merge 1 commit intoruffle-rs:masterfrom
Randomno:jumptests
Open

tests: avm1: Add tests for jumping outside of DoAction tag#23160
Randomno wants to merge 1 commit intoruffle-rs:masterfrom
Randomno:jumptests

Conversation

@Randomno
Copy link

@Randomno Randomno commented Mar 1, 2026

These tests all jump outside of a DoAction tag and execute a push+trace statement.

jump_to_unknown_tag: Jumps to a custom tag (253)
jump_to_header: Jumps to the FileLength field of the header
jump_to_image_tag: Jumps to near the start of a DefineBitsJPEG2 tag

Various content uses jumps to unknown tags because it was a common obfuscation technique, but I'm not aware of any content doing the latter two operations. jump_to_header currently fails in Ruffle.

header and image_tag were compiled with CS6. unknown_tag was made with FFDec and a hex editor.

@kjarosh kjarosh added A-tests Area: Tests & Test Framework T-compat Type: Compatibility with Flash Player labels Mar 8, 2026
@kjarosh
Copy link
Member

kjarosh commented Mar 8, 2026

How did you add a jump outside the DoAction tag in CS6?

@Randomno
Copy link
Author

Randomno commented Mar 8, 2026

__bytecode__("990200D4FF");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tests Area: Tests & Test Framework T-compat Type: Compatibility with Flash Player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants