Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fuzz_driver.cpp File Reference
#include <sysio/wasm_backend/backend.hpp>
#include <sysio/vm/watchdog.hpp>
Include dependency graph for fuzz_driver.cpp:

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t * data,
size_t size )

Definition at line 7 of file fuzz_driver.cpp.

7 {
8 wasm_allocator wa;
9 wasm_code wc;
10 wc.resize(size);
11 memcpy((uint8_t*)wc.data(), data, size);
12 backend<std::nullptr_t> bkend( wc );
13 bkend.execute_all(null_watchdog());
14}
wasm_allocator wa
Definition main.cpp:10
void execute_all(Watchdog &&wd, host_t &host)
Definition backend.hpp:219
backend_t bkend(hello_wasm, ehm, &wa)
std::vector< uint8_t > wasm_code
Definition types.hpp:147
unsigned char uint8_t
Definition stdint.h:124
memcpy((char *) pInfo->slotDescription, s, l)
Here is the call graph for this function: