38#define MAX_RECURSION_DEPTH 32
40#define MAX_ARRAY_ELEMENTS 128
41#define MAX_TYPES_IN_POOL 16
42#define MAX_ARGS_IN_SIGNATURE 16
43#define MAX_TOTAL_FUZZ_FIELDS 256
68 const uint8_t * ptr = in->
data;
80#define DEFINE_CONSUME_T(type) \
81 static inline bool consume_##type(fuzzer_input * in, type * out) { \
82 const uint8_t * bytes = consume_bytes(in, sizeof(type)); \
85 memcpy(out, bytes, sizeof(type)); \
infix_arena_t * arena
Definition 005_layouts.c:57
#define DEFINE_CONSUME_T(type)
A macro to create a type-safe consumer for any given Plain Old Data (POD) type.
Definition fuzz_helpers.h:80
infix_type * generate_random_type(infix_arena_t *arena, fuzzer_input *in, int depth, size_t *total_fields)
Recursively generates a randomized infix_type from the fuzzer's input data, allocating all objects fr...
Definition fuzz_helpers.c:29
static const uint8_t * consume_bytes(fuzzer_input *in, size_t n)
Safely consume 'n' bytes from the input buffer.
Definition fuzz_helpers.h:65
Declarations for internal-only functions, types, and constants.
Definition infix_internals.h:130
The central structure for describing any data type in the FFI system.
Definition infix.h:161