aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_ext_example.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-11-02 09:37:00 -0700
committerDmitry Vyukov <dvyukov@google.com>2022-11-03 09:13:06 -0700
commita59bff84f5ae43f9b9f8d4271da4c5879c5565a5 (patch)
treeb31f0add32ff609a3708c4a332dd7fa4aae28b49 /executor/common_ext_example.h
parent7a2ebf95abdfd7af12ac4453060f347771375b07 (diff)
executor: fix TestCommonExt for bigendian arches
Diffstat (limited to 'executor/common_ext_example.h')
-rw-r--r--executor/common_ext_example.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_ext_example.h b/executor/common_ext_example.h
index 0cabcb75c..71289211e 100644
--- a/executor/common_ext_example.h
+++ b/executor/common_ext_example.h
@@ -13,5 +13,5 @@ static void setup_ext()
static void setup_ext_test()
{
// See TestCommonExt.
- *(uint64*)(SYZ_DATA_OFFSET + 0x1234) = 0xbadc0ffee;
+ memcpy((void*)(SYZ_DATA_OFFSET + 0x1234), "\xee\xff\xc0\xad\x0b\x00\x00\x00", 8);
}