Fixed: #2311 AS1/2 p-code freezing on highlighting ConstantPool

This commit is contained in:
Jindra Petřík
2024-09-16 06:36:00 +02:00
parent 6166566fc6
commit 513b2aba46
3 changed files with 11 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- [#2302] AS3 Class linkage - changes did not save
- [PR203] AS1/2 extreme lagging
- [#2310] Text search history showing as null
- [#2311] AS1/2 p-code freezing on highlighting ConstantPool
## [21.0.5] - 2024-09-05
### Fixed
@@ -3550,6 +3551,7 @@ Major version of SWF to XML export changed to 2.
[#2303]: https://www.free-decompiler.com/flash/issues/2303
[#2302]: https://www.free-decompiler.com/flash/issues/2302
[#2310]: https://www.free-decompiler.com/flash/issues/2310
[#2311]: https://www.free-decompiler.com/flash/issues/2311
[#2293]: https://www.free-decompiler.com/flash/issues/2293
[#2294]: https://www.free-decompiler.com/flash/issues/2294
[#2299]: https://www.free-decompiler.com/flash/issues/2299

View File

@@ -147,6 +147,14 @@ public class AbstractDocs {
while (true) {
startPos = lexer.yychar();
symb = lexer.lex();
if (symb.type == ParsedSymbol.TYPE_DOTS) {
endPos = lexer.yychar() + 3;
break;
}
if (symb.type == ParsedSymbol.TYPE_EOF) {
endPos = lexer.yychar();
break;
}
if (symb.type == ParsedSymbol.TYPE_BRACKET_OPEN) {
while (symb.type != ParsedSymbol.TYPE_BRACKET_CLOSE && symb.type != ParsedSymbol.TYPE_EOF) {
symb = lexer.lex();

View File

@@ -458,7 +458,7 @@ action.constantpool.shortDescription=Create a new constant pool
action.constantpool.description=
action.constantpool.stackBefore=
action.constantpool.stackAfter=
action.constantpool.operands=constant1:STRING, constant2:STRING, ...
action.constantpool.operands=constant1:STRING, [constant2:STRING, ...]
action.definefunction.name=DefineFunction
action.definefunction.code=0x9B
action.definefunction.swfVersion=5