summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@samsung.com>2019-07-23 07:01:22 +0300
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 15:29:41 +0300
commit75e112f172ea733b81e5bf325d3139b2f0672260 (patch)
treefe0cd3e10a6c037b01e519877f6a1534fcff5635
parentcd4e24b64ffdbf309cd077dd6a68c832f63b9661 (diff)
downloadcoreclr-75e112f172ea733b81e5bf325d3139b2f0672260.tar.gz
coreclr-75e112f172ea733b81e5bf325d3139b2f0672260.tar.bz2
coreclr-75e112f172ea733b81e5bf325d3139b2f0672260.zip
corbbtprof: set byte alignment for CORBBTPROF structures (#25816)
Fix patch fixes SIGBUG that occurs due to unaligned read/write
-rw-r--r--src/inc/corbbtprof.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inc/corbbtprof.h b/src/inc/corbbtprof.h
index f7258c1e5b..419a7f0ba9 100644
--- a/src/inc/corbbtprof.h
+++ b/src/inc/corbbtprof.h
@@ -275,6 +275,8 @@ enum SectionFormat
SectionFormatInvalid = -1
};
+#include <pshpack1.h>
+
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 <poppack.h>
+
#endif /* COR_BBTPROF_H_ */