Commit Graph

1655 Commits

Author SHA1 Message Date
Jindra Petřík
a018a3d1ce Fixed goto/for detection 2021-01-22 21:03:52 +01:00
Jindra Petřík
a0bd5794dc Fixed goto/for detection 2021-01-22 20:46:44 +01:00
Jindra Petřík
d7b4b5848b AS3 - more tests, added classes tests back 2021-01-22 20:44:11 +01:00
Jindra Petřík
337f8bb81d goto detection improvements 2021-01-21 10:29:13 +01:00
Jindra Petřík
d3f0f94cc5 goto detection improvements 2021-01-19 22:33:03 +01:00
Jindra Petřík
4028327330 goto detection... still does not work 2021-01-19 18:22:26 +01:00
Jindra Petřík
cc1ed2e1c7 reverting the change about for loops / goto detection :-(
it does not work as intended
2021-01-18 20:53:44 +01:00
Jindra Petřík
b2b54118f2 AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop 2021-01-18 20:27:05 +01:00
Jindra Petřík
e857b36db5 New test classes for fors, updated AS3Generator for tests 2021-01-18 19:47:59 +01:00
Jindra Petřík
9c38f4dca1 AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope 2021-01-18 19:19:36 +01:00
Jindra Petřík
95d3f442af Pushes all to stack before going goto. 2021-01-18 19:19:36 +01:00
Jindra Petřík
f5d4403a83 Improved for continue / goto detection 2021-01-18 19:19:36 +01:00
Jindra Petřík
90a4d56b88 Try for new getprecontinues method for for detection 2021-01-18 19:19:36 +01:00
Jindra Petřík
07acaaed74 Making internal flash viewer a default viewer + move FP option switch to Advanced settings / others 2021-01-12 14:36:10 +01:00
Jindra Petřík
b40c51634a Escaping in P-code Graphviz exporter (Problems with graphs containing backslash strings) 2021-01-09 16:11:18 +01:00
Jindra Petřík
61b9660b49 GraphTargetVisitorInterface for visiting model 2021-01-09 15:00:20 +01:00
Jindra Petřík
819a739397 GraphTargetVisitorInterface for visiting model 2021-01-09 13:00:30 +01:00
Jindra Petřík
4926cb04d0 Show §§findproperty when neccessary (AS3) 2021-01-09 08:43:45 +01:00
Jindra Petřík
637f52091a setglobalslot as §§ 2021-01-09 08:34:54 +01:00
Jindra Petřík
60d91f7782 Use object.§§slot[index] syntax instead of /* UnknownSlot */ comment when slot cannot be determined (AS3) 2021-01-09 08:34:27 +01:00
Jindra Petřík
07c3cc3cfb push unresolved ifs object back 2021-01-09 07:21:29 +01:00
Jindra Petřík
ea51fdea9a #1379 AS3 - better handling local registers postincrement/decrement 2021-01-06 17:13:00 +01:00
Jindra Petřík
d292c462c0 Fix build (beanshell) 2021-01-06 10:34:13 +01:00
Jindra Petřík
d5ebf47746 StringBuilder isEmpty fix (available for newer javas) 2021-01-06 10:04:33 +01:00
Jindra Petřík
dabb55d21d #1548 TTF export - correctly handle duplicate unicode codes
#1548 correctly handle empty generated file names
2021-01-06 09:38:43 +01:00
Jindra Petřík
732d05444a Building does not require Naashorn - uses Beanshell instead 2021-01-06 08:44:04 +01:00
Jindra Petřík
2b64e72014 Correct body index for script initializer in P-code debugging 2021-01-06 08:43:04 +01:00
Jindra Petřík
6637b11d67 Correct line matching in debugger of AS3 after using deobfuscation 2021-01-04 18:35:47 +01:00
Jindra Petřík
da34fcbd04 Putting XML import/export export back in as it seems to run fine. 2021-01-04 17:56:13 +01:00
Jindra Petřík
ac66eb740b Fixed: Correct AS/P-code matching in editor for AS3 after using deobfuscation 2021-01-04 10:10:23 +01:00
Jindra Petřík
520e7ae735 Merge branch 'dev' into dev 2021-01-01 08:51:43 +01:00
nickgkg
518a4e21b1 also fix serialization 2021-01-01 08:40:33 +01:00
nickgkg
01fee76d81 correctly deserialize negatives 2021-01-01 08:40:33 +01:00
Jindra Petřík
b20eeafe53 Enable back detecting installed fonts. (FFDec must be restarted to refresh such list) 2021-01-01 01:08:32 +01:00
Jindra Petřík
653879b589 removed unused import 2021-01-01 01:08:32 +01:00
曉之車
6c16f6cd5f Update Swf2Exe.bin
Fix icon indistinct problem
2021-01-01 01:07:49 +01:00
曉之車
cdff0c081a chinese translate upadate
ffdec_11.3.0 version
2021-01-01 01:07:48 +01:00
Jindra Petřík
5a68dc63b6 fixed tests, removed jacoco 2021-01-01 01:07:47 +01:00
Jindra Petřík
ca21337d9f java 9 compliance
- base64, bytearrtohex, installed fonts, xml sax parser
2021-01-01 01:07:43 +01:00
Jindra Petřík
90537ad1da fixed tests, removed jacoco 2020-04-25 20:08:55 +02:00
Jindra Petřík
a63e8f7623 java 9 compliance
- base64, bytearrtohex, installed fonts, xml sax parser
2020-04-25 19:05:59 +02:00
Jindra Petřík
317308a640 #1378 Transparent background on PNG/GIF sprite export,
SWF background on shape BMP export
2020-04-25 17:11:07 +02:00
rebane2001
7f9041c6f8 A fix to make exported sprites transparent 2020-04-25 17:11:07 +02:00
nename0
76724b9375 Fix access to protected members with super (#75)
* fix access to protected members with super

* prevent overridden function to be found before the overriding
2020-04-25 17:11:07 +02:00
nename0
d69d81ea3f the p-code generation of lookupswitch now correctly does -1 from the count of cases (#74) 2020-04-25 17:11:07 +02:00
florent.fauchille
419fd9590e NPE on runtime when installedFontsByFamily is null (#73)
* NPE on runtime when installedFontsByFamily is `null`

When running the command `java -jar dist/ffdec.jar -export fla <out> <file.swf>`, it crashes with stacktrace:
```
java.lang.NullPointerException                                                                                                                                                                                                                                           
        at com.jpexs.decompiler.flash.tags.base.FontTag.isFontFamilyInstalled(FontTag.java:310)                                                                                                                                                                          
        at com.jpexs.decompiler.flash.xfl.XFLConverter.convertFonts(XFLConverter.java:2366)                                                                                                                                                                              
        at com.jpexs.decompiler.flash.xfl.XFLConverter.convertSWF(XFLConverter.java:3363)
        at com.jpexs.decompiler.flash.SWF.exportXfl(SWF.java:2506)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.exportFla(CommandLineArgumentParser.java:2410)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseExport(CommandLineArgumentParser.java:2349)
        at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseArguments(CommandLineArgumentParser.java:891)
        at com.jpexs.decompiler.flash.gui.Main.main(Main.java:1976)

```

Null checking `installedFontsByFamily` fixes the issue and the SWF to FLA is successful.

* Add ensureLoaded()  for isFontFamilyInstalled

With ensureLoaded() instead of null check
2020-04-25 17:11:07 +02:00
Jindra Petřík
5733cd9051 #1449 Updated Turkish translation 2020-04-25 17:11:07 +02:00
honfika
c13341abd9 SWF max version increased 2020-04-25 17:11:07 +02:00
Jindra Petřík
e881aac7af #1457 pushing on stack before exit item(return/throw) 2020-04-25 17:11:07 +02:00
Jindra Petřík
2c3b9354aa #1457 AS3 switch without lookupswitch ins detection 2020-04-25 17:11:07 +02:00