mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +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);
|
||||
mp->mp_flags = P_LOOSE | P_DIRTY;
|
||||
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;
|
||||
txn->mt_loose_pages = mp;
|
||||
txn->mt_loose_count++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user