From ac637676f8d0a88f3d2f7ed09340a100c54225fb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 16 Aug 2021 22:56:38 +0100 Subject: [PATCH] ITS#9637 more for idlexp max --- servers/slapd/back-mdb/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {