directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r448559 - /directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
Date Thu, 21 Sep 2006 14:12:47 GMT
Author: elecharny
Date: Thu Sep 21 07:12:46 2006
New Revision: 448559

URL: http://svn.apache.org/viewvc?view=rev&rev=448559
Log:
Appliying patch for DIRSERVER-745

Modified:
    directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java

Modified: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java?view=diff&rev=448559&r1=448558&r2=448559
==============================================================================
--- directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
(original)
+++ directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/ber/Asn1Decoder.java
Thu Sep 21 07:12:46 2006
@@ -441,6 +441,11 @@
                 length.incCurrentLength();
                 length.incSize();
                 length.setLength( ( length.getLength() << 8 ) | ( octet & 0x00FF
) );
+
+                if ( stream.hasRemaining() == false )
+                {
+                    return END;
+                }
             }
 
             container.setState( TLVStateEnum.LENGTH_STATE_END );



Mime
View raw message