directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r226913 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java
Date Mon, 01 Aug 2005 23:57:24 GMT
Author: elecharny
Date: Mon Aug  1 16:57:20 2005
New Revision: 226913

URL: http://svn.apache.org/viewcvs?rev=226913&view=rev
Log:
As the default constructor of an OctetString has been removed,
changed the reation of an assertionValue. Calling the default
constructor before leads to a subtil bug where the length of
the data was 1024, so the encoding failed with a buffer overflow.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java?rev=226913&r1=226912&r2=226913&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java
Mon Aug  1 16:57:20 2005
@@ -480,8 +480,7 @@
                         SearchRequest searchRequest = ldapMessage.getSearchRequest();
 
                         TLV tlv            = ldapMessageContainer.getCurrentTLV();
-                        OctetString assertionValue = new OctetString();
-                        assertionValue.setData(tlv.getValue().getData());
+                        OctetString assertionValue = new OctetString(tlv.getValue().getData());
                         
                         AttributeValueAssertionFilter currentFilter = (AttributeValueAssertionFilter)searchRequest.getCurrentFilter();
                         AttributeValueAssertion assertion = currentFilter.getAssertion();



Mime
View raw message