github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/executor/common_ext_example.h (about)

     1  // Copyright 2022 syzkaller project authors. All rights reserved.
     2  // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  // An example implementation of common_ext.h used for testing.
     5  
     6  #define SYZ_HAVE_SETUP_EXT 1
     7  static void setup_ext()
     8  {
     9  	debug("example setup_ext called\n");
    10  }
    11  
    12  #define SYZ_HAVE_SETUP_EXT_TEST 1
    13  static void setup_ext_test()
    14  {
    15  	// See TestCommonExt.
    16  	memcpy((void*)(SYZ_DATA_OFFSET + 0x1234), "\xee\xff\xc0\xad\x0b\x00\x00\x00", 8);
    17  }