From 3fcf98685364957f699ba18f82ee459f3bb484c6 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Fri, 7 Apr 2023 15:19:35 +0300 Subject: [PATCH] unittests: don't use ASAN_POISON_MEMORY_REGION with gcc --- unittests/tier1test/lzsstest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/tier1test/lzsstest.cpp b/unittests/tier1test/lzsstest.cpp index 3e9d07ff..7eeff4c3 100644 --- a/unittests/tier1test/lzsstest.cpp +++ b/unittests/tier1test/lzsstest.cpp @@ -19,7 +19,7 @@ static void SafeUncompressTests() unsigned char out[256]; char poision3[8192]; -#ifdef USING_ASAN +#if defined( USING_ASAN ) && !defined( COMPILER_GCC ) ASAN_POISON_MEMORY_REGION( poision1, 8192 ); ASAN_POISON_MEMORY_REGION( poision2, 8192 ); ASAN_POISON_MEMORY_REGION( poision3, 8192 );