Skip to content

Commit

Permalink
Fixed #1990 Cloning DefineSprite causing incorrect tags written
Browse files Browse the repository at this point in the history
  • Loading branch information
jindrapetrik committed Mar 19, 2023
1 parent 583cfc9 commit 06c5727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file.
- AS3 p-code - IGNORE_REST method flag incorrectly shown as EXPLICIT
- [#1989] AS3 - Slow deobfuscation (AVM2DeobfuscatorSimpleOld)
- AS3 - getouterscope instruction support
- [#1990] Cloning DefineSprite causing incorrect tags written

### Changed
- AS1/2/3 P-code - format Number values with EcmaScript toString function
Expand Down Expand Up @@ -3006,6 +3007,7 @@ All notable changes to this project will be documented in this file.
[#1982]: https://www.free-decompiler.com/flash/issues/1982
[#1986]: https://www.free-decompiler.com/flash/issues/1986
[#1989]: https://www.free-decompiler.com/flash/issues/1989
[#1990]: https://www.free-decompiler.com/flash/issues/1990
[#1970]: https://www.free-decompiler.com/flash/issues/1970
[#1972]: https://www.free-decompiler.com/flash/issues/1972
[#1973]: https://www.free-decompiler.com/flash/issues/1973
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ public Tag readTag(Timelined timelined, int level, long pos, boolean resolve, bo
tagLength = available;
}

ByteArrayRange dataRange = new ByteArrayRange(swf.uncompressedData, (int) pos, (int) (tagLength + headerLength));
ByteArrayRange dataRange = new ByteArrayRange(this.data, (int) pos, (int) (tagLength + headerLength));
skipBytes(tagLength);

TagStub tagStub = new TagStub(swf, tagID, "Unresolved", dataRange, tagDataStream);
Expand Down

0 comments on commit 06c5727

Please sign in to comment.