From e6e468fbb5c20b08c8bd59bafc794acea907e4b4 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Wed, 23 Mar 2022 22:08:51 +0100 Subject: [PATCH] fix: set marklimit to Integer.MAX_VALUE --- src/main/kotlin/app/revanced/patcher/util/Io.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/util/Io.kt b/src/main/kotlin/app/revanced/patcher/util/Io.kt index e200c79..3ced3a4 100644 --- a/src/main/kotlin/app/revanced/patcher/util/Io.kt +++ b/src/main/kotlin/app/revanced/patcher/util/Io.kt @@ -20,7 +20,7 @@ internal class Io( private val bufferedInputStream = BufferedInputStream(input) fun readFromJar() { - bufferedInputStream.mark(0) + bufferedInputStream.mark(Integer.MAX_VALUE) // create a BufferedInputStream in order to read the input stream again when calling saveAsJar(..) val jis = JarInputStream(bufferedInputStream)