fuzz: add platform.h
This commit is contained in:
parent
2b24d9a8ea
commit
c2261ee7fd
|
@ -9,18 +9,13 @@
|
||||||
|
|
||||||
#include <capstone/capstone.h>
|
#include <capstone/capstone.h>
|
||||||
|
|
||||||
|
#include "platform.h"
|
||||||
|
|
||||||
const char * cs_fuzz_arch(uint8_t arch);
|
const char * cs_fuzz_arch(uint8_t arch);
|
||||||
|
|
||||||
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
||||||
|
|
||||||
|
|
||||||
struct platform {
|
|
||||||
cs_arch arch;
|
|
||||||
cs_mode mode;
|
|
||||||
const char *comment;
|
|
||||||
const char *cstoolname;
|
|
||||||
};
|
|
||||||
|
|
||||||
static FILE *outfile = NULL;
|
static FILE *outfile = NULL;
|
||||||
|
|
||||||
static struct platform platforms[] = {
|
static struct platform platforms[] = {
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#ifndef CS_FUZZ_PLATFORM_H
|
||||||
|
#define CS_FUZZ_PLATFORM_H
|
||||||
|
|
||||||
|
struct platform {
|
||||||
|
cs_arch arch;
|
||||||
|
cs_mode mode;
|
||||||
|
const char *comment;
|
||||||
|
const char *cstoolname;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue