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

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

A fix has been committed to HEAD.  Please test.


At 03:01 PM 2002-07-07, Xavier.Redon@eudil.fr wrote:
>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 ){