summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@samsung.com>2019-07-23 04:01:22 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commit75e112f172ea733b81e5bf325d3139b2f0672260 (patch)
treefe0cd3e10a6c037b01e519877f6a1534fcff5635 /src
parentcd4e24b64ffdbf309cd077dd6a68c832f63b9661 (diff)
downloadcoreclr-75e112f172ea733b81e5bf325d3139b2f0672260.zip
coreclr-75e112f172ea733b81e5bf325d3139b2f0672260.tar.gz
coreclr-75e112f172ea733b81e5bf325d3139b2f0672260.tar.bz2
corbbtprof: set byte alignment for CORBBTPROF structures (#25816)
Fix patch fixes SIGBUG that occurs due to unaligned read/write
Diffstat (limited to 'src')
-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 f7258c1..419a7f0 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_ */