From 0414a7c1fd17a6764cda5ad8d41e61c5b0d2e7b3 Mon Sep 17 00:00:00 2001 From: Konstantin Baladurin Date: Tue, 23 Jul 2019 07:01:22 +0300 Subject: [PATCH] corbbtprof: set byte alignment for CORBBTPROF structures (dotnet/coreclr#25816) Fix patch fixes SIGBUG that occurs due to unaligned read/write Commit migrated from https://github.com/dotnet/coreclr/commit/53b1a71d230851f32a2bf904ed030f2755bcf253 --- src/coreclr/src/inc/corbbtprof.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coreclr/src/inc/corbbtprof.h b/src/coreclr/src/inc/corbbtprof.h index f7258c1..419a7f0 100644 --- a/src/coreclr/src/inc/corbbtprof.h +++ b/src/coreclr/src/inc/corbbtprof.h @@ -275,6 +275,8 @@ enum SectionFormat SectionFormatInvalid = -1 }; +#include + struct CORBBTPROF_SECTION_TABLE_ENTRY { SectionFormat FormatID; @@ -589,4 +591,7 @@ struct CORBBTPROF_BLOB_POOL_ENTRY DWORD cBuffer; BYTE buffer[0]; // actually 'cBuffer' in length }; + +#include + #endif /* COR_BBTPROF_H_ */ -- 2.7.4