OpenJDK / amber / amber
changeset 6312:ec857430700d
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 | 1448d18935b5 |
children | a02eddc607b7 |
files | jdk/src/share/classes/com/sun/jndi/ldap/Connection.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;