45#define MAX_RECURSION_DEPTH 32
49#define MAX_ARRAY_ELEMENTS 128
51#define MAX_TYPES_IN_POOL 16
53#define MAX_ARGS_IN_SIGNATURE 16
56#define MAX_TOTAL_FUZZ_FIELDS 256
82 const uint8_t * ptr = in->
data;
96#define DEFINE_CONSUME_T(type) \
97 static inline bool consume_##type(fuzzer_input * in, type * out) { \
98 const uint8_t * bytes = consume_bytes(in, sizeof(type)); \
101 memcpy(out, bytes, sizeof(type)); \
infix_arena_t * arena
Definition 005_layouts.c:68
#define DEFINE_CONSUME_T(type)
Definition fuzz_helpers.h:96
infix_type * generate_random_type(infix_arena_t *arena, fuzzer_input *in, int depth, size_t *total_fields)
Recursively generates a random infix_type graph from a fuzzer input stream.
Definition fuzz_helpers.c:55
static const uint8_t * consume_bytes(fuzzer_input *in, size_t n)
Definition fuzz_helpers.h:79
The public interface for the infix FFI library.
Internal data structures, function prototypes, and constants.
Internal definition of a memory arena.
Definition infix_internals.h:146
A semi-opaque structure that describes a C type.
Definition infix.h:211