Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fuzz_driver.cpp
Go to the documentation of this file.
1#include <sysio/wasm_backend/backend.hpp>
2#include <sysio/vm/watchdog.hpp>
3
4using namespace sysio;
5using namespace sysio::wasm_backend;
6
7extern "C" int LLVMFuzzerTestOneInput( const uint8_t* data, size_t size ) {
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
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
backend_t bkend(hello_wasm, ehm, &wa)
unsigned char uint8_t
Definition stdint.h:124
memcpy((char *) pInfo->slotDescription, s, l)