open-flash / swf-parser

Rust and Typescript parsers for SWF
GNU Affero General Public License v3.0
28 stars 8 forks source link

[all] Fix support for DefineButton2 with multiple ButtonCondAction #16

Closed demurgos closed 5 years ago

demurgos commented 5 years ago

The parser failed to use action offsets to consume individual ButtonCondAction, instead it consumed the whole input and then tried to read the next ButtonCondAction.

Reported by @eddyb in https://github.com/open-flash/swf-parser/pull/5#issuecomment-479183906