fix: disable zip file checks for new JVM versions (#1962)

This commit is contained in:
Skylot 2023-07-28 20:09:54 +01:00
parent 8f635076ea
commit 752c61ae71
No known key found for this signature in database
GPG Key ID: 1E23F5B52567AA39
4 changed files with 19 additions and 2 deletions

12
.run/jadx-gui.run.xml Normal file
View File

@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="jadx-gui" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="jadx.gui.JadxGUI"/>
<module name="jadx.jadx-gui.main"/>
<option name="PROGRAM_PARAMETERS" value="-v"/>
<option name="VM_PARAMETERS"
value="-Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>
</configuration>
</component>

View File

@ -25,7 +25,11 @@ dependencies {
application {
applicationName = "jadx"
mainClass.set("jadx.cli.JadxCLI")
applicationDefaultJvmArgs = listOf("-Xms256M", "-XX:MaxRAMPercentage=70.0")
applicationDefaultJvmArgs = listOf(
"-Xms256M",
"-XX:MaxRAMPercentage=70.0",
"-Djdk.util.zip.disableZip64ExtraFieldValidation=true", // disable zip checks (#1962)
)
applicationDistribution.from("$rootDir") {
include("README.md")
include("NOTICE")

View File

@ -65,6 +65,7 @@ application {
"-Dawt.useSystemAAFontSettings=lcd",
"-Dswing.aatext=true",
"-Djava.util.Arrays.useLegacyMergeSort=true",
"-Djdk.util.zip.disableZip64ExtraFieldValidation=true", // disable zip checks (#1962)
"-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens=java.base/java.lang=ALL-UNNAMED", // for ktlint formatter
)

View File

@ -101,7 +101,7 @@ public class JavaInputLoader {
}
});
} catch (Exception e) {
LOG.error("Failed to process zip file: {}", file.getAbsolutePath(), e);
LOG.error("Failed to process zip file: {}", name, e);
}
return result;
}