From 3329538e96faf3d311c9c2247809bce0e1eb9c67 Mon Sep 17 00:00:00 2001 From: p3p3pp3 Date: Wed, 29 May 2024 14:35:26 +0800 Subject: [PATCH] Update Deflate.cs ArrayIndexOutOfBoundsException in Tree.d_code --- itext/itext.io/itext/io/util/zlib/Deflate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itext/itext.io/itext/io/util/zlib/Deflate.cs b/itext/itext.io/itext/io/util/zlib/Deflate.cs index af15f4a513..bd64e10e92 100644 --- a/itext/itext.io/itext/io/util/zlib/Deflate.cs +++ b/itext/itext.io/itext/io/util/zlib/Deflate.cs @@ -1383,7 +1383,7 @@ internal int deflateInit2(ZStream strm, int level, int method, int windowBits, pending_buf = new byte[lit_bufsize*4]; pending_buf_size = lit_bufsize*4; - d_buf = lit_bufsize/2; + d_buf = lit_bufsize; l_buf = (1+2)*lit_bufsize; this.level = level;