diff options
author | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-07-23 07:01:22 +0300 |
---|---|---|
committer | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-09-26 00:24:34 +0300 |
commit | f5096f5678507c9ce94fbaa67f3549080be61328 (patch) | |
tree | 06c852666522bd6c7d68703a0abf3507d7f87adc | |
parent | 3c712b4edebc46b599319af234484477e5017514 (diff) | |
download | coreclr-f5096f5678507c9ce94fbaa67f3549080be61328.tar.gz coreclr-f5096f5678507c9ce94fbaa67f3549080be61328.tar.bz2 coreclr-f5096f5678507c9ce94fbaa67f3549080be61328.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.h | 5 |
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_ */ |