Bug 1477680, land NSPR 4.20 beta snapshot 6e31156d7002, r=me

UPGRADE_NSPR_RELEASE
This commit is contained in:
Kai Engert 2018-08-15 22:10:18 +02:00
Родитель 299e679ae7
Коммит 1ac97d2efc
3 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -1 +1 @@
607196c7ef66
6e31156d7002

Просмотреть файл

@ -10,3 +10,4 @@
*/
#error "Do not include this header file."

Просмотреть файл

@ -95,13 +95,24 @@ struct PLArenaPool {
#if defined(PL_SANITIZE_ADDRESS)
#if defined(_MSC_VER)
/* We can't use dllimport due to DLL linkage mismatch with
* sanitizer/asan_interface.h.
*/
#define PL_ASAN_VISIBILITY(type_) type_
#else
#define PL_ASAN_VISIBILITY(type_) PR_IMPORT(type_)
#endif
/* These definitions are usually provided through the
* sanitizer/asan_interface.h header installed by ASan.
* See https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning
*/
PR_IMPORT(void) __asan_poison_memory_region(void const volatile *addr, size_t size);
PR_IMPORT(void) __asan_unpoison_memory_region(void const volatile *addr, size_t size);
PL_ASAN_VISIBILITY(void) __asan_poison_memory_region(
void const volatile *addr, size_t size);
PL_ASAN_VISIBILITY(void) __asan_unpoison_memory_region(
void const volatile *addr, size_t size);
#define PL_MAKE_MEM_NOACCESS(addr, size) \
__asan_poison_memory_region((addr), (size))