Debian Codegraph @

suite/fuzz/platform.h

raw symbols SCIP
1 #ifndef CS_FUZZ_PLATFORM_H
2 #define CS_FUZZ_PLATFORM_H
3
4 #include <capstone/capstone.h>
5
6 struct platform {
7 cs_arch arch;
8 cs_mode mode;
9 const char *comment;
10 const char *cstoolname;
11 };
12
13 extern struct platform platforms[];
14
15 // get length of platforms[]
16 unsigned int platform_len(void);
17
18 // get platform entry encoded n (first byte for input data of OSS fuzz)
19 unsigned int get_platform_entry(uint8_t n);
20
21 // get cstoolname from encoded n (first byte for input data of OSS fuzz)
22 const char *get_platform_cstoolname(uint8_t n);
23
24 #endif