[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#6027) Debug() accesses free()-d memory in register_at() on error
- To: openldap-its@OpenLDAP.org
- Subject: (ITS#6027) Debug() accesses free()-d memory in register_at() on error
- From: test.007@seznam.cz
- Date: Tue, 17 Mar 2009 11:37:08 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Full_Name: Test Seven
Version: 2.4.15
OS: Windows
URL:
Submission from: (NULL) (195.39.55.20)
http://www.openldap.org/devel/cvsweb.cgi/~checkout~/servers/slapd/at.c?rev=1.104&hideattic=1&sortbydate=0
ldap_attributetype_free( at );
Debug( LDAP_DEBUG_ANY,
"register_at: AttributeType \"%s\": %s, %s\n",
def, scherr2str(code), err );
You should swap the lines, because ``err'' points inside ``at''.
How to reproduce:
Compile Debug version with LDAP_DEBUG e.g. with MSVC 2005.
Don't configure it
slapd.exe -d9
Output:
register_at: AttributeType "( OLcfgDbAt:0.1 NAME 'olcDbDirectory' DESC
'Director
y for database content' EQUALITY caseIgnoreMatch SYNTAX OMsDirectoryString
SINGL
E-VALUE )": OID could not be expanded,
ŢŢŢŢŢŢŢŢŢŢŢŢŢŢŢŢŢŢ