aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_ext_example.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-09-08 12:55:42 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-11-01 10:23:09 -0700
commit08977f5d5e344fa0ac0b80af0b72fc3f1468d6a5 (patch)
tree073d5136049228b4a279d9bca98d678f1a7afe12 /executor/common_ext_example.h
parent75eae5a7ef67781b73f2b9038416542c7ea0612c (diff)
executor: add setup_ext_test extension point
The extension point allows to setup the test process in a custom way without overwriting any of the existing files.
Diffstat (limited to 'executor/common_ext_example.h')
-rw-r--r--executor/common_ext_example.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/common_ext_example.h b/executor/common_ext_example.h
index 0299b6d4f..0cabcb75c 100644
--- a/executor/common_ext_example.h
+++ b/executor/common_ext_example.h
@@ -8,3 +8,10 @@ static void setup_ext()
{
debug("example setup_ext called\n");
}
+
+#define SYZ_HAVE_SETUP_EXT_TEST 1
+static void setup_ext_test()
+{
+ // See TestCommonExt.
+ *(uint64*)(SYZ_DATA_OFFSET + 0x1234) = 0xbadc0ffee;
+}