You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/08/02 01:57:24 UTC
svn commit: r226913 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/FilterGrammar.java
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();