mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 21:49:46 +00:00
fuzz: add platform.h
This commit is contained in:
parent
2768999006
commit
0df169b507
@ -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
11
suite/fuzz/platform.h
Normal 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
|
Loading…
Reference in New Issue
Block a user