Home
last modified time | relevance | path

Searched refs:ffi_type (Results 1 – 2 of 2) sorted by relevance

/tools/security/fuzzing/orphans/libffi/
Dfuzz_ffi.cc34 ffi_type* generateCustomType(FuzzedDataProvider* dataProvider) { in generateCustomType()
38 ffi_type* new_type = reinterpret_cast<ffi_type*>(malloc(sizeof(ffi_type))); in generateCustomType()
48 new_type->elements = reinterpret_cast<ffi_type**>( in generateCustomType()
49 malloc(sizeof(ffi_type*)*(num_elements+1))); in generateCustomType()
68 size_t getTotalSize(ffi_type* type) { in getTotalSize()
87 ffi_type* getRandomType(FuzzedDataProvider* dataProvider, in getRandomType()
92 ffi_type* type; in getRandomType()
106 void* genArg(ffi_type* type, FuzzedDataProvider* dataProvider) { in genArg()
125 bool buildArgArrays(ffi_type* arg_types[], void* arg_array[], size_t num_args, in buildArgArrays()
136 ffi_type* type = getRandomType(dataProvider, true); in buildArgArrays()
[all …]
Dfuzz_ffi.h37 ffi_type* ffi_types[] = {
68 std::vector<ffi_type*> ffi_alloc_vector;
93 size_t getTotalSize(ffi_type*);
96 ffi_type* getRandomType(FuzzedDataProvider*, bool);
99 ffi_type* generateCustomType(FuzzedDataProvider*);
103 size_t copyArg(ffi_type*, void*, FuzzedDataProvider*);
107 bool buildArgArrays(ffi_type*[], void*[], size_t, FuzzedDataProvider*);
111 void* genArg(ffi_type*, FuzzedDataProvider*);
120 void freeFFI(ffi_type*);