From 4e8a1ede3b41e9b4a93cb664fbc3f48b1521f62b Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 24 Nov 2020 17:06:54 +0100 Subject: [PATCH] - Fix padding of struct regional for 32bit systems. --- doc/Changelog | 1 + util/regional.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index a07b4a373..a635698c8 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -8,6 +8,7 @@ - tag for the 1.13.0rc1 release. - Fix crash when TLS connection is closed prematurely, when reuse tree comparison is not properly identical to insertion. + - Fix padding of struct regional for 32bit systems. 23 November 2020: George - Merge PR #313 from Ralph Dolmans: Replace edns-client-tag with diff --git a/util/regional.h b/util/regional.h index eeb7de7b5..b439897d5 100644 --- a/util/regional.h +++ b/util/regional.h @@ -76,6 +76,9 @@ struct regional char* data; /** threshold for outside of chunk allocations */ size_t large_object_size; + /** padding for sizeof8 alignment of sizeof(struct regional) + * for 32bit systems */ + size_t padding; }; /**