From: Bruce Momjian Date: Thu, 25 Jan 2001 00:02:58 +0000 (+0000) Subject: This patch fixes an arrayindexoutofbounds exception that was just X-Git-Tag: REL7_1~669 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e45005ffb8f89ce055953ea66dde908be7c26ed;p=postgresql This patch fixes an arrayindexoutofbounds exception that was just introduced into the code. The fix is a fix to org.postgresql.core.ByteArrayDim1.java. Barry Lind --- diff --git a/src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java b/src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java index 61b58f2ec5..e78f46b4af 100644 --- a/src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java +++ b/src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java @@ -21,7 +21,7 @@ public class BytePoolDim1 { /** * */ - byte binit[][] = new byte[maxsize][0]; + byte binit[][] = new byte[maxsize+1][0]; /** * Construct a new pool