From d7e4cb2e22d7f544145476d5aa2c553634376148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 9 Nov 2022 12:39:06 +0300 Subject: [PATCH] mdbx: add admonition of insecure for RISC-V (backport). --- mdbx.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mdbx.h b/mdbx.h index c30c4897..2a7ae872 100644 --- a/mdbx.h +++ b/mdbx.h @@ -75,6 +75,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifndef LIBMDBX_H #define LIBMDBX_H +#if defined(__riscv) || defined(__riscv__) || defined(__RISCV) || \ + defined(__RISCV__) +#warning The RISC-V architecture is intentionally insecure by design. \ + Please delete this admonition at your own risk, \ + if you make such decision informed and consciously. \ + Refer to https://clck.ru/32d9xH for more information. +#endif /* RISC-V */ + #ifdef _MSC_VER #pragma warning(push, 1) #pragma warning(disable : 4548) /* expression before comma has no effect; \