diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-13 15:26:10 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-13 15:26:10 +0100 |
| commit | a5c1ab05b300370278e59e13f7925ee09d504609 (patch) | |
| tree | 086d602aee55e0ac428ba34b02a51775a74ee174 /executor | |
| parent | 2a752b7c5e39457c3c16ef91cf2192a42813c802 (diff) | |
sys/test: add more tests for bitfields
Add tests for issue #1542
The correct results are obtained with the following program:
struct foo {
unsigned char f0;
unsigned int f1:4;
unsigned short f2:4;
};
struct bar {
char f0;
struct foo foo;
};
int main() {
struct bar y;
memset(&y, 0, sizeof(y));
y.f0 = 0x12;
y.foo.f0 = 0x34;
y.foo.f1 = 0x56;
y.foo.f2 = 0x78;
int i;
for (i = 0; i < sizeof(y); i++)
printf("%02x", ((unsigned char*)&y)[i]);
printf("\n");
}
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/defs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/executor/defs.h b/executor/defs.h index adf6f014a..a44765eb7 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -155,7 +155,7 @@ #if GOARCH_32_fork_shmem #define GOARCH "32_fork_shmem" -#define SYZ_REVISION "c1820da1fd3d10373aa40011a453b7479b078078" +#define SYZ_REVISION "5420d1980691671ee0ec084859e05868de853bed" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -165,7 +165,7 @@ #if GOARCH_32_shmem #define GOARCH "32_shmem" -#define SYZ_REVISION "5c997491edf9b3c7f42853ea0cb2078731b361f2" +#define SYZ_REVISION "d4a26f797d2cfb3f3ffaf6e43a7c9f1f7d59d43b" #define SYZ_EXECUTOR_USES_FORK_SERVER 0 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 8192 @@ -175,7 +175,7 @@ #if GOARCH_64 #define GOARCH "64" -#define SYZ_REVISION "9e4533f6dd739b2de6d80ae0eee00e10a2a1a45f" +#define SYZ_REVISION "94ed76558e13abf1f47e9590299293b926462bec" #define SYZ_EXECUTOR_USES_FORK_SERVER 0 #define SYZ_EXECUTOR_USES_SHMEM 0 #define SYZ_PAGE_SIZE 4096 @@ -185,7 +185,7 @@ #if GOARCH_64_fork #define GOARCH "64_fork" -#define SYZ_REVISION "7467ae0af7e161054ba46c3c4e2c2a2a9c82ba7f" +#define SYZ_REVISION "07a04161e736227d55b28532246146168743d177" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 0 #define SYZ_PAGE_SIZE 8192 |
