> As a result, MDB ends up miscalculating the address of rec2, and
 > all subsequent records until tc_stop.

Actually, it's even worse than this -- the check is == rather than <

        if (tc->tc_rec == tc->tc_stop) {
                tc->tc_rec = NULL;
                mdb_free(tc->tc_buf, tc->tc_bufsiz);
        }

... so since tc_rec is not aligned anymore, it keeps spinning around.

--
meem
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to