mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx: исправление предупреждения UBSAN.
This commit is contained in:
parent
ab55016599
commit
2c8d3e1e12
@ -4805,8 +4805,7 @@ static size_t cursor_keep(const MDBX_txn *const txn, const MDBX_cursor *mc) {
|
|||||||
tASSERT(txn, IS_LEAF(mp));
|
tASSERT(txn, IS_LEAF(mp));
|
||||||
if (!mc->mc_xcursor || mc->mc_ki[mc->mc_top] >= page_numkeys(mp))
|
if (!mc->mc_xcursor || mc->mc_ki[mc->mc_top] >= page_numkeys(mp))
|
||||||
break;
|
break;
|
||||||
const MDBX_node *const node = page_node(mp, mc->mc_ki[mc->mc_top]);
|
if (!(node_flags(page_node(mp, mc->mc_ki[mc->mc_top])) & F_SUBDATA))
|
||||||
if (!(node->mn_flags & F_SUBDATA))
|
|
||||||
break;
|
break;
|
||||||
mc = &mc->mc_xcursor->mx_cursor;
|
mc = &mc->mc_xcursor->mx_cursor;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user