Skip to content

Commit 9e993d7

Browse files
committed
fix: update Zlib compatibility check with specific byte array comparison
1 parent 45fc79e commit 9e993d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

HMCLCore/src/main/java/org/jackhuang/hmcl/util/ZlibUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ public final class ZlibUtils {
7070

7171
byte[] compressedData = compressedTestData.toByteArray();
7272

73-
IS_ZLIB_COMPATIBLE = Arrays.equals(testData, compressedData);
73+
IS_ZLIB_COMPATIBLE = Arrays.equals(
74+
new byte[]{120, -100, -13, 72, -51, -55, -55, 87, 8, -49, 47, -54, 73, 81, 4, 0, 28, 73, 4, 62},
75+
compressedData
76+
);
7477
}
7578

7679
private ZlibUtils() {

0 commit comments

Comments
 (0)