[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapd segfaults (ITS#468)



Full_Name: ian logan
Version: devel
OS: redhat 6.1
URL: 
Submission from: (NULL) (128.123.100.20)


Under Redhat 6.1 slapd (built from last nights sources) segfaults trying to
free
a constant string.  The seg fault was triggered by doing a simple search like
(mail=ian*)
.
servers/slapd/backend.c backend_operational() (line 644) has
a->type = "subschemasubentry";

This is later free'd in send_search_entry (result.c line 846), which ends up
calling 
attr_free which says free(a->a-type) causing the segfault.

Changing servers/slapd/backend.c (line 644) to read
a->type = ch_strdup("subschemasubentry");

has fixed this for me.  

thanks,
ian