mdbx: fix AddressSanitizer issue for mdbx_page_loose (minor, not a bug).

Change-Id: I0e550dabdeda92759c28d4566104ff07a92d83bb
This commit is contained in:
Leonid Yuriev 2018-11-22 02:52:25 +03:00
parent f626acb398
commit ee7ebe438c

View File

@ -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++;