mirror of
https://github.com/open-goal/jak-project
synced 2026-08-23 15:22:15 -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
27 lines
516 B
C
Vendored
Generated
27 lines
516 B
C
Vendored
Generated
// this tool decodes first input byte feed to OSS fuzz, that encodes arch+mode
|
|
// by Nguyen Anh Quynh, 2019
|
|
|
|
#include <stdio.h>
|
|
#include <inttypes.h>
|
|
|
|
#include <capstone/capstone.h>
|
|
|
|
#include "platform.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
unsigned char data;
|
|
|
|
if (argc != 2) {
|
|
printf("Decoding OSS fuzz platform\n");
|
|
printf("Syntax: %s <hex-byte>\n", argv[0]);
|
|
return -1;
|
|
}
|
|
|
|
data = (unsigned int)strtol(argv[1], NULL, 16);
|
|
|
|
printf("cstool arch+mode = %s\n", get_platform_cstoolname(data));
|
|
|
|
return 0;
|
|
}
|