From dfc72ad6f7299e197438b2226821ca9b5948b69b Mon Sep 17 00:00:00 2001 From: Bernard Ladenthin Date: Sat, 1 Aug 2026 17:54:07 +0200 Subject: [PATCH] Crypto: document that CRYPTOPP_ALIGN_DATA can expand to nothing The macro falls through to an empty definition for TC_WINDOWS_BOOT and for compilers that are neither MSVC nor GCC/Clang. Common/Xts.c is compiled into the bootloader and declares two buffers with it, so the caveat is reachable. --- src/Crypto/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Crypto/config.h b/src/Crypto/config.h index 841d6eadaf..7fd024b2b5 100644 --- a/src/Crypto/config.h +++ b/src/Crypto/config.h @@ -56,6 +56,8 @@ #endif #ifndef CRYPTOPP_ALIGN_DATA + // Note: expands to nothing for TC_WINDOWS_BOOT and for compilers that are neither + // MSVC nor GCC/Clang, so alignment is not guaranteed in those builds. #if defined(_MSC_VER) && !defined(TC_WINDOWS_BOOT) #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x)) #elif defined(__GNUC__)