mirror of
https://github.com/open-goal/jak-project
synced 2026-08-27 08:28:03 -04:00
bfc4c18ada
- Adds `capstone` as a disassembling library that could eventually replace Zydis (for now left that alone) - Replicates all of the existing x86 tests to ARM64, fixed a bunch of underlying issues along the way - There are a very small handful of tests remaining that need to be enabled / fixed
25 lines
532 B
C
Vendored
Generated
25 lines
532 B
C
Vendored
Generated
#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
|