From 4c0535b1facbc9ba785c1919ed6f59291ade7b80 Mon Sep 17 00:00:00 2001 From: Silas Mariusz Date: Mon, 28 Sep 2026 10:26:57 +0000 Subject: [PATCH] Align the XML-RPC command stack so torrent::Object is not constructed on a 4-byte boundary. --- src/rpc/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/command.h b/src/rpc/command.h index 4c9a652e..1c5ed769 100644 --- a/src/rpc/command.h +++ b/src/rpc/command.h @@ -108,7 +108,7 @@ public: static stack_type* from_data(char* data) { return reinterpret_cast(data); } - char buffer[sizeof(torrent::Object) * max_arguments]; + alignas(optimal_alignment) char buffer[sizeof(torrent::Object) * max_arguments]; }; command_base() : m_copy_helper(nullptr), m_dest_helper(nullptr) {}