From 942c2f0c65fd2599f9fa31463493ea10d74ab8c2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 13 Feb 2023 12:26:27 +0000 Subject: [PATCH 1/2] Disable PAL access enforcing on netbsd --- src/snmalloc/pal/pal_consts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmalloc/pal/pal_consts.h b/src/snmalloc/pal/pal_consts.h index 6ea5b36b3..3d2ba1f6d 100644 --- a/src/snmalloc/pal/pal_consts.h +++ b/src/snmalloc/pal/pal_consts.h @@ -21,7 +21,7 @@ namespace snmalloc * read/write, for added excitement). For the moment, just force this down on * CHERI. */ -#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) +#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) && !defined(__NetBSD__) static constexpr bool PalEnforceAccess = true; #else static constexpr bool PalEnforceAccess = false; From 5e8e340a0ba865fe2fec27416f2412aa7cd8ef5e Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Mon, 20 Feb 2023 14:46:02 +0000 Subject: [PATCH 2/2] Clangformat --- src/snmalloc/pal/pal_consts.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snmalloc/pal/pal_consts.h b/src/snmalloc/pal/pal_consts.h index 3d2ba1f6d..dde946dc7 100644 --- a/src/snmalloc/pal/pal_consts.h +++ b/src/snmalloc/pal/pal_consts.h @@ -21,7 +21,8 @@ namespace snmalloc * read/write, for added excitement). For the moment, just force this down on * CHERI. */ -#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) && !defined(__NetBSD__) +#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) && \ + !defined(__NetBSD__) static constexpr bool PalEnforceAccess = true; #else static constexpr bool PalEnforceAccess = false;