Commit Graph

1642 Commits

Author SHA1 Message Date
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
Jindra Petřík
83d42253c4 DefineBits (with JPEGTables) tags export fixed 2018-05-28 20:42:49 +02:00
Jindra Petřík
02660f396e AS1/2 deobfuscation of empty stack pops - returning Undefined instead 2018-05-28 18:00:32 +02:00
Jindra Petřík
f48c92df27 AS1/2 Delete operator with nonIdentifier parameters (e.g. spaces or obfuscated) 2018-05-27 22:42:26 +02:00
Jindra Petřík
f61772c8f7 For in break detection with inner switch statement 2018-05-27 22:10:54 +02:00
Jindra Petřík
6c998254b9 - Setting of limit of executed instructions during AS1/2 deobfuscation
- Default limit of maximum executed instructions during AS1/2 deobfuscation raised to 10000
2018-05-27 19:39:02 +02:00
Jindra Petřík
d5069acb2c - Fixed §§push after continue - should be before (usually on obfuscated code) 2018-05-27 18:41:33 +02:00
Jindra Petřík
0dea317d9f - AS1/2 Fixed callmethodaction arguments
- AS1/2 Using brackets instead of §§ syntax in callmethodaction
2018-05-27 17:33:15 +02:00
Jindra Petřík
d138c61072 - AS1 slash syntax support (decompilation, direct editation)
- AS1/2 Using eval, set functions on obfuscated names instead of §§ syntax where applicable
2018-05-27 16:52:55 +02:00
Jindra Petřík
6ec124f71a Fixed using temporary registers after for..in (causing §§pop instructions, etc.) 2018-05-27 10:49:42 +02:00
Jindra Petřík
36fa23c11e Merge branch 'graphviz-detect' into dev 2018-05-26 18:38:29 +02:00
Jindra Petřík
811f7a3b77 Better continue in for / goto detection. 2018-05-26 18:37:25 +02:00
Jindra Petřík
1dd96e6c53 Warning panel on scripts containing §§ instructions (Tip for Settings/Automatic deobfuscation) 2018-05-25 19:03:20 +02:00
Jindra Petřík
a9733926cf better AS 1/2 unresolved const handling 2018-05-24 19:42:44 +02:00