fuzz: add platform.h

This commit is contained in:
Nguyen Anh Quynh 2019-04-13 10:54:09 +08:00
parent 2768999006
commit 0df169b507
2 changed files with 13 additions and 7 deletions

View File

@ -9,18 +9,13 @@
#include <capstone/capstone.h>
#include "platform.h"
const char * cs_fuzz_arch(uint8_t arch);
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 struct platform platforms[] = {

11
suite/fuzz/platform.h Normal file
View File

@ -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