]> granicus.if.org Git - postgresql/commitdiff
This patch fixes an arrayindexoutofbounds exception that was just
authorBruce Momjian <bruce@momjian.us>
Thu, 25 Jan 2001 00:02:58 +0000 (00:02 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 25 Jan 2001 00:02:58 +0000 (00:02 +0000)
introduced into the code.  The fix is a fix to
org.postgresql.core.ByteArrayDim1.java.

Barry Lind

src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java

index 61b58f2ec517fab151bfffe725a7b0080e192b23..e78f46b4af24716caf49f903ccf3e2f40acedb03 100644 (file)
@@ -21,7 +21,7 @@ public class BytePoolDim1 {
     /**
      *
      */
-    byte binit[][] = new byte[maxsize][0];
+    byte binit[][] = new byte[maxsize+1][0];
 
     /**
      * Construct a new pool