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

Re: (ITS#8062) Assertion 'IS_LEAF(mp)' failed in mdb_cursor_next()



leo@yuriev.ru wrote:
> As far as I remember this was fixed in ReOpenLDAP at January.
> Valgrind was reporting 'using uninitialized'.

Not happening here. mdb_cursor_first() always initializes mc_ki.
>
> Leonid.
>
> @@ -7301,6 +7551,7 @@ mdb_cursor_init(MDB_cursor *mc, MDB_txn *txn,
> MDB_dbi dbi, MDB_xcursor *mx)
>           mc->mc_top = 0;
>           mc->mc_pg[0] = 0;
>           mc->mc_flags = 0;
> +       mc->mc_ki[0] = 0;
>           if (txn->mt_dbs[dbi].md_flags & MDB_DUPSORT) {
>                   mdb_tassert(txn, mx != NULL);
>                   mc->mc_xcursor = mx;
>
>
>
>
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/