File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
brut.apktool/apktool-cli/src/main/java/brut/apktool Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ public static void main(String[] args) throws BrutException {
42
42
// headless
43
43
System .setProperty ("java.awt.headless" , "true" );
44
44
45
+ // Ignore stricter validation on zip files from java 11 onwards as this is a protection technique
46
+ // that applications use to thwart disassembly tools. We have protections in place for directory traversal
47
+ // and handling of bogus data in the zip header, so we can ignore this.
48
+ System .setProperty ("jdk.nio.zipfs.allowDotZipEntry" , "true" );
49
+ System .setProperty ("jdk.util.zip.disableZip64ExtraFieldValidation" , "true" );
50
+
45
51
// set verbosity default
46
52
Verbosity verbosity = Verbosity .NORMAL ;
47
53
Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ subprojects {
142
142
apply plugin : ' java'
143
143
144
144
test {
145
+ // https://github.com/iBotPeaches/Apktool/issues/3174
146
+ systemProperty ' jdk.nio.zipfs.allowDotZipEntry' , ' true'
147
+ systemProperty ' jdk.util.zip.disableZip64ExtraFieldValidation' , ' true'
148
+
145
149
testLogging {
146
150
exceptionFormat = ' full'
147
151
}
You can’t perform that action at this time.
0 commit comments