From f2146820749bb93d184724c92433ebef6df80416 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 12 Feb 2025 15:53:06 +0700 Subject: [PATCH] Bump matter registry limit to 64 MiB --- src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt index 97ab02b6f..176860e2c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/matter/MatterManager.kt @@ -1828,7 +1828,7 @@ object MatterManager { } else { spliced.writeBytes(buffer, 0, inflated) - if (spliced.writerIndex() >= 1 shl 24 /* 16 MiB */) { + if (spliced.writerIndex() >= 1 shl 26 /* 64 MiB */) { throw IndexOutOfBoundsException("Pipe Bomb") } }