diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/suite/fuzz/platform.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/suite/fuzz/platform.h')
-rw-r--r-- | capstone/suite/fuzz/platform.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/capstone/suite/fuzz/platform.h b/capstone/suite/fuzz/platform.h new file mode 100644 index 000000000..29e03f989 --- /dev/null +++ b/capstone/suite/fuzz/platform.h @@ -0,0 +1,24 @@ +#ifndef CS_FUZZ_PLATFORM_H +#define CS_FUZZ_PLATFORM_H + +#include <capstone/capstone.h> + +struct platform { + cs_arch arch; + cs_mode mode; + const char *comment; + const char *cstoolname; +}; + +extern struct platform platforms[]; + +// get length of platforms[] +unsigned int platform_len(void); + +// get platform entry encoded n (first byte for input data of OSS fuzz) +unsigned int get_platform_entry(uint8_t n); + +// get cstoolname from encoded n (first byte for input data of OSS fuzz) +const char *get_platform_cstoolname(uint8_t n); + +#endif |