6921610: 1.6 update 17 and 18 throw java.lang.IndexOutOfBoundsException
authorweijun
Thu, 19 Aug 2010 12:24:53 +0800
changeset 6312 ec857430700d
parent 6311 1448d18935b5
child 6315 a02eddc607b7
6921610: 1.6 update 17 and 18 throw java.lang.IndexOutOfBoundsException Reviewed-by: vinnie, xuelei
jdk/src/share/classes/com/sun/jndi/ldap/Connection.java
--- a/jdk/src/share/classes/com/sun/jndi/ldap/Connection.java	Thu Aug 19 11:26:32 2010 +0800
+++ b/jdk/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;