PATCH for arrayindexoutofbounds exception in latest code

Started by Barry Lindover 25 years ago2 messagespatches
Jump to latest
#1Barry Lind
barry@xythos.com

This patch fixes an arrayindexoutofbounds exception that was just
introduced into the code. The fix is a fix to
org.postgresql.core.ByteArrayDim1.java.

Attachments:

patch.difftext/plain; charset=UTF-8; name=patch.diffDownload+2-2
#2Bruce Momjian
bruce@momjian.us
In reply to: Barry Lind (#1)
Re: PATCH for arrayindexoutofbounds exception in latest code

Thanks. Applied.

---------------------------------------------------------------------------

This patch fixes an arrayindexoutofbounds exception that was just
introduced into the code. The fix is a fix to
org.postgresql.core.ByteArrayDim1.java.

*** src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java.orig	Wed Jan 24 13:04:02 2001
--- src/interfaces/jdbc/org/postgresql/core/BytePoolDim1.java	Wed Jan 24 13:02:09 2001
***************
*** 21,27 ****
      /**
       *
       */
!     byte binit[][] = new byte[maxsize][0];
      /**
       * Construct a new pool
--- 21,27 ----
      /**
       *
       */
!     byte binit[][] = new byte[maxsize+1][0];

/**
* Construct a new pool

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026