From b33648fd14dc1990bd3a16df392b3cc6fb922331 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 24 Mar 2020 21:12:54 +0300 Subject: [PATCH] Implement SAFE_BUFFERS as __attribute__((no_stack_protector)) It was doing nothing outside of MSVC. Still seems doing nothing. --- Utilities/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/types.h b/Utilities/types.h index 728bfb9313..855791bcf1 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -46,7 +46,7 @@ #define ASSUME(...) do { if (!(__VA_ARGS__)) __builtin_unreachable(); } while (0) // note: the compiler will generate code to evaluate "cond" if the expression is opaque #endif -#define SAFE_BUFFERS +#define SAFE_BUFFERS __attribute__((no_stack_protector)) #define NEVER_INLINE __attribute__((noinline)) #define FORCE_INLINE __attribute__((always_inline)) inline #define RESTRICT __restrict__