From ee7ebe438cbbd89337a7110ef6798ce07f3a7e22 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 22 Nov 2018 02:52:25 +0300 Subject: [PATCH] mdbx: fix AddressSanitizer issue for mdbx_page_loose (minor, not a bug). Change-Id: I0e550dabdeda92759c28d4566104ff07a92d83bb --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index 8dd24e8d..8f81eb20 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -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++;