diff --git a/src/client/linux/minidump_writer/directory_reader.h b/src/client/linux/minidump_writer/directory_reader.h index 62bba8779..eb1696943 100644 --- a/src/client/linux/minidump_writer/directory_reader.h +++ b/src/client/linux/minidump_writer/directory_reader.h @@ -95,9 +95,10 @@ class DirectoryReader { private: const int fd_; - bool hit_eof_; unsigned buf_used_; - uint8_t buf_[sizeof(struct kernel_dirent) + NAME_MAX + 1]; + alignas(struct kernel_dirent) + uint8_t buf_[sizeof(struct kernel_dirent) + NAME_MAX + 1]; + bool hit_eof_; }; } // namespace google_breakpad diff --git a/src/client/linux/minidump_writer/linux_dumper.h b/src/client/linux/minidump_writer/linux_dumper.h index 2d5b2e52b..75198bd4e 100644 --- a/src/client/linux/minidump_writer/linux_dumper.h +++ b/src/client/linux/minidump_writer/linux_dumper.h @@ -254,7 +254,7 @@ class LinuxDumper { // ID of the crashed thread. pid_t crash_thread_; - mutable PageAllocator allocator_; + mutable alignas(MappingInfo) PageAllocator allocator_; // IDs of all the threads. wasteful_vector threads_;