mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 16:18:20 +08:00
mdbx: fix AddressSanitizer issue for mdbx_page_loose (minor, not a bug).
Change-Id: I0e550dabdeda92759c28d4566104ff07a92d83bb
This commit is contained in:
parent
f626acb398
commit
ee7ebe438c
@ -1765,7 +1765,7 @@ static int mdbx_page_loose(MDBX_cursor *mc, MDBX_page *mp) {
|
|||||||
mdbx_kill_page(txn->mt_env, mp);
|
mdbx_kill_page(txn->mt_env, mp);
|
||||||
mp->mp_flags = P_LOOSE | P_DIRTY;
|
mp->mp_flags = P_LOOSE | P_DIRTY;
|
||||||
VALGRIND_MAKE_MEM_UNDEFINED(mp, PAGEHDRSZ);
|
VALGRIND_MAKE_MEM_UNDEFINED(mp, PAGEHDRSZ);
|
||||||
VALGRIND_MAKE_MEM_DEFINED(&mp->mp_pgno, sizeof(pgno_t));
|
ASAN_UNPOISON_MEMORY_REGION(link, sizeof(*link));
|
||||||
*link = txn->mt_loose_pages;
|
*link = txn->mt_loose_pages;
|
||||||
txn->mt_loose_pages = mp;
|
txn->mt_loose_pages = mp;
|
||||||
txn->mt_loose_count++;
|
txn->mt_loose_count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user