changeset 2666:95bb147c7c33

6921610: 1.6 update 17 and 18 throw java.lang.IndexOutOfBoundsException Reviewed-by: vinnie, xuelei
author weijun
date Thu, 19 Aug 2010 12:24:53 +0800
parents 4abd65f04638
children db1b7c10de61
files src/share/classes/com/sun/jndi/ldap/Connection.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/jndi/ldap/Connection.java	Thu Aug 19 11:26:32 2010 +0800
+++ b/src/share/classes/com/sun/jndi/ldap/Connection.java	Thu Aug 19 12:24:53 2010 +0800
@@ -813,7 +813,8 @@
         try {
             while (true) {
                 try {
-                    inbuf = new byte[10];
+                    // type and length (at most 128 octets for long form)
+                    inbuf = new byte[129];
 
                     offset = 0;
                     seqlen = 0;