[Date Prev][Date Next]
Re: (ITS#5642) Double free on exit, when specific attributetype is defined
Hallvard B Furuseth wrote:
> email@example.com writes:
>>> attributetype ( 222.214.171.124.1 NAME 'requireClass' SUP objectClass )
>> This is now fixed in HEAD.
> Slapd should to refuse to start with a bogus OID like that.
> OIDs start with components<0-1>.<0-39> or 2.<any>.
> The LDAP standard doesn't seem to mention this, but RFC 4517 does defer
> to X.680 (the ASN.1 spec), which since 1998 has deferred to X.660 -
> which I don't have:-( Anyway, my reference is John Larmouth's _ASN.1
> Complete_. And it can be inferred from the BER encoding of the OBJECT
> IDENTIFIER type.
Feel free to patch it. The fix I committed was simply to the double-free for
any attributeType that inherits from objectClass...
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/