]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9637 more for idlexp max
authorHoward Chu <hyc@openldap.org>
Mon, 16 Aug 2021 21:56:38 +0000 (22:56 +0100)
committerHoward Chu <hyc@openldap.org>
Mon, 16 Aug 2021 21:56:38 +0000 (22:56 +0100)
servers/slapd/back-mdb/search.c

index e7540449ad85cc99bc342bd4048880c1f2356db5..69b1be8b022f31fcc88425836f39708b521b0e75 100644 (file)
@@ -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 ) {