diff options
Diffstat (limited to 'src/pal/src/loader/module.cpp')
-rw-r--r-- | src/pal/src/loader/module.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pal/src/loader/module.cpp b/src/pal/src/loader/module.cpp index c817ffe2db..74156fd215 100644 --- a/src/pal/src/loader/module.cpp +++ b/src/pal/src/loader/module.cpp @@ -60,6 +60,10 @@ SET_DEFAULT_DEBUG_CHANNEL(LOADER); // some headers have code with asserts, so do #include <gnu/lib-names.h> #endif +#ifdef TIZEN_ASAN_ENVIRONMENT +#include "tizenasanenvmodule.h" +#endif // TIZEN_ASAN_ENVIRONMENT + using namespace CorUnix; // In safemath.h, Template SafeInt uses macro _ASSERTE, which need to use variable @@ -688,6 +692,25 @@ PAL_GetProcAddressDirect( return address; } +#ifdef TIZEN_ASAN_ENVIRONMENT +/* +Function: + PAL_IsSanitizedLibraryDirect + + Check whether the native library is sanitized. + + Returns TRUE if the native library is sanitized; FALSE otherwise. +*/ +PALIMPORT +BOOL +PALAPI +PAL_IsSanitizedLibraryDirect( + IN NATIVE_LIBRARY_HANDLE dl_handle) +{ + return is_module_sanitized(dl_handle); +} +#endif // TIZEN_ASAN_ENVIRONMENT + /*++ Function: PAL_RegisterModule |