From: Howard Chu Date: Mon, 16 Aug 2021 21:56:38 +0000 (+0100) Subject: ITS#9637 more for idlexp max X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac637676f8d0a88f3d2f7ed09340a100c54225fb;p=thirdparty%2Fopenldap.git ITS#9637 more for idlexp max --- diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index e7540449ad..69b1be8b02 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -1326,7 +1326,7 @@ static void *search_stack( Operation *op ) } if ( !ic ) { - ic = ch_malloc(( mdb->mi_search_stack_depth + 2 ) * MDB_idl_um_size + ic = ch_malloc(( mdb->mi_search_stack_depth + 2 ) * (size_t)MDB_idl_um_size * sizeof( ID ) + sizeof( IDLchunk ) ); ic->logn = MDB_idl_logn; if ( op->o_threadctx ) {