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

Assert failed in ch_malloc (from send_search_entry) (ITS#1931)

Full_Name: Xavier REDON
Version: openldap-2.1.2
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

In file server/slapd/result.c line 740 a call is done to ch_calloc with j as
size. Under some circumstances j can be 0. I suggest to replace line 740 by
a_flags = j==0 ? NULL : ch_calloc ( j, sizeof(char) );
and line 742 by
if ( j!=0 && op->vrFilter == NULL ){