Fixed: #2525 AMF editor - saving empty standard array []

This commit is contained in:
Jindra Petřík
2025-08-29 18:02:52 +02:00
parent 417e6ab467
commit 24151d2945
3 changed files with 4 additions and 4 deletions

View File

@@ -89,6 +89,7 @@ All notable changes to this project will be documented in this file.
- [#2522] Hex view - reseting view when mouse over panel bottom
- [#2519] AS1/2 direct editation - generating too large ConstantPool
- Hex View - incorrect table height when switching tags
- [#2525] AMF editor (like in Sol cookie editor) - saving empty standard array `[]`
### Changed
- Icon of "Deobfuscation options" menu from pile of pills to medkit
@@ -4005,6 +4006,7 @@ Major version of SWF to XML export changed to 2.
[#2516]: https://www.free-decompiler.com/flash/issues/2516
[#2517]: https://www.free-decompiler.com/flash/issues/2517
[#2522]: https://www.free-decompiler.com/flash/issues/2522
[#2525]: https://www.free-decompiler.com/flash/issues/2525
[#2476]: https://www.free-decompiler.com/flash/issues/2476
[#2404]: https://www.free-decompiler.com/flash/issues/2404
[#1418]: https://www.free-decompiler.com/flash/issues/1418

View File

@@ -101,9 +101,8 @@ public class Amf0Importer {
arrayVals.add(value(objectTable));
s = lex();
}
pushback(s);
}
expectedType(SymbolType.BRACKET_CLOSE);
expectedType(s, lexer.yyline(), SymbolType.BRACKET_CLOSE);
return new JsArray(arrayVals);
}

View File

@@ -109,9 +109,8 @@ public class Amf3Importer {
arrayVals.add(value(objectTable));
s = lex();
}
pushback(s);
}
expectedType(SymbolType.BRACKET_CLOSE);
expected(s, lexer.yyline(), SymbolType.BRACKET_CLOSE);
return new JsArray(arrayVals);
}