From 08977f5d5e344fa0ac0b80af0b72fc3f1468d6a5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 8 Sep 2022 12:55:42 +0200 Subject: 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. --- executor/common_ext_example.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'executor/common_ext_example.h') 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; +} -- cgit mrf-deployment