From 3b187a0ff77b852e003d666384b873b52e9dbad8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 24 Dec 2020 16:26:21 -0500 Subject: Update FixedSizeAllocatorWithCleanup alignment --- secblock.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/secblock.h b/secblock.h index 1e228897..cf621df7 100644 --- a/secblock.h +++ b/secblock.h @@ -708,13 +708,9 @@ public: private: - // The 8-byte alignments follows convention of Linux and Windows. - // Linux and Windows receives most testing. Duplicate it here for - // other platforms like AIX and Solaris. AIX and Solaris often use - // alignments smaller than expected. In fact AIX caught us by - // surprise with word16 and word32. + // T_Align16 is false. Use natural alignment of T. T* GetAlignedArray() {return m_array;} - CRYPTOPP_ALIGN_DATA(8) T m_array[S]; + T m_array[S]; A m_fallbackAllocator; bool m_allocated; -- cgit v1.2.1