mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
memleaktest with MSVC's AddressSanitizer
Disabling memleaktest under MSVC because leak detection is not a supported feature with MSVC's AddressSanitizer. Leaving ASan enabled in this case causes a test failure because the test suite is expecting the leak to be detected. CLA: trivial Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14581)
This commit is contained in:
parent
67ea4beb94
commit
d97adfda28
@ -20,7 +20,10 @@
|
||||
# endif
|
||||
#endif
|
||||
/* If __SANITIZE_ADDRESS__ isn't defined, define it to be false */
|
||||
#ifndef __SANITIZE_ADDRESS__
|
||||
/* Leak detection is not yet supported with MSVC on Windows, so */
|
||||
/* set __SANITIZE_ADDRESS__ to false in this case as well. */
|
||||
#if !defined(__SANITIZE_ADDRESS__) || defined(_MSC_VER)
|
||||
# undef __SANITIZE_ADDRESS__
|
||||
# define __SANITIZE_ADDRESS__ 0
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user