Commit Graph

8046 Commits

Author SHA1 Message Date
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
Jindra Petřík
89bff8b687 Update CHANGELOG.md 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
Gauthier Billot
fb24291c79 Fix typo 2020-04-25 17:11:07 +02:00
honfika
f978f08536 #1500 Update changelog 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
9a55acb816 Update CHANGELOG.md
[skip ci]
2020-04-25 17:11:07 +02:00
Jindra Petřík
172ca77aa4 Update CHANGELOG.md 2020-04-25 17:11:07 +02:00
Stefano Vettorazzi
6e39374a16 It's possible to open a file using open
Example:
`open -a ffdec --args "~/file.swf"`

However, this is not going to work:
`open -a ffdec file.swf`
but that's because of how shell scripts on OS X work.
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
fe9f862a83 #1449 updated turkish translation 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
2562d7d9f4 create dev branch 2020-04-25 17:11:07 +02:00
Jindra Petřík
90f2ec2159 Update CHANGELOG.md version11.2.0 2018-09-08 15:32:29 +02:00
Jindra Petřík
ae02157954 Merge pull request #68 from jindrapetrik/dev
Merging version 11.2.0
2018-09-08 15:28:45 +02:00
Jindra Petřík
16f0bfc2db #1484 AS import error import on commandline fix 2018-09-08 15:23:49 +02:00
Jindra Petřík
797c9b13bd match to issue #1415 2018-07-14 22:17:50 +02:00
Jindra Petřík
f1960ffdde Properly terminating debug session on Flash player manual close 2018-07-14 22:16:32 +02:00
Jindra Petřík
4518769b45 Displaying contents of local variables (AS3) while debugging 2018-07-14 22:08:02 +02:00
Jindra Petřík
c14cbbaf01 No disabling autoOpenLoadedSWFs checkbox when ActiveX player not available (User can use Run button) 2018-07-14 19:18:56 +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
a115e19b7c - Fixed §§push after continue - should be before (usually on obfuscated code) 2018-05-27 18:41:48 +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
8b91bfc1d7 changelog graphviz info position fix 2018-05-26 18:58:01 +02:00
Jindra Petřík
860b7ec2b5 changelog update 2018-05-26 18:41:34 +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
Jindra Petřík
db5750a8f7 show definefunctions in separate clusters in graphs 2018-05-24 15:31:32 +02:00
Jindra Petřík
7810a84ad2 graphlib for detecting code structure on graph view 2018-05-24 15:31:32 +02:00
Jindra Petřík
1abdd0bf11 updated changelog 2018-05-24 15:31:31 +02:00
Jindra Petřík
74fcac338e Copy GV source to clipboard in rightclick menu of Graph. 2018-05-24 15:31:31 +02:00
Jindra Petřík
cdd1acb1f9 More universal GraphExporter
Log exceptions on copy to clipboard graph
2018-05-24 15:31:30 +02:00
Jindra Petřík
7f7945e9c2 updated changelog 2018-05-24 15:31:30 +02:00
Jindra Petřík
70760add45 GraphViz dot path as configuration option 2018-05-24 15:31:30 +02:00
Jindra Petřík
2ecc415469 Copy Graph to clipboard button (AS1/2). WIP: select different icon and/or button placement 2018-05-24 15:31:30 +02:00
Jindra Petřík
d5c814f79f Option to export script (AS1/2) as Graphviz P-code 2018-05-24 15:31:30 +02:00
Jindra Petřík
7ee96beead PcodeGraphVizExporter (Currently only for AS1/2) 2018-05-24 15:31:30 +02:00
Jindra Petřík
7cd52dc324 Making makeGraph public in Graph so Graphviz exporter can access it better 2018-05-24 15:31:29 +02:00
Jindra Petřík
51cc222964 unreleased changelog section [ci skip] 2018-05-24 15:29:15 +02:00
Jindra Petřík
bf2a413725 Update CHANGELOG.md version11.1.0 2018-05-24 15:12:28 +02:00