-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop in forge if patch parsing fails, fix compat with up…
…graded apache-compress
- Loading branch information
1 parent
9d05048
commit 5b22a60
Showing
3 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/me/eigenraven/lwjgl3ify/redirects/JarInputStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package me.eigenraven.lwjgl3ify.redirects; | ||
|
||
import java.io.EOFException; | ||
import java.io.IOException; | ||
import java.util.jar.JarEntry; | ||
|
||
public final class JarInputStream { | ||
|
||
public static JarEntry getNextJarEntrySafe(final java.util.jar.JarInputStream jis) throws IOException { | ||
try { | ||
return jis.getNextJarEntry(); | ||
} catch (EOFException eof) { | ||
System.err.println("EOF caught while searching for forge patches: " + eof); | ||
eof.printStackTrace(System.err); | ||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters