Rizin
unix-like reverse engineering framework and cli tools
invalid_read_in_print_operand.c
Go to the documentation of this file.
1 #include <capstone.h>
2 
3 #define BINARY "\x3b\x30\x62\x93\x5d\x61\x03\xe8"
4 
5 int main(int argc, char **argv, char **envp) {
6  csh handle;
8  printf("cs_open(…) failed\n");
9  return 1;
10  }
11  cs_insn *insn;
12  cs_disasm(handle, (uint8_t *)BINARY, sizeof(BINARY) - 1, 0x1000, 0, &insn);
13  return 0;
14 }
static mcore_handle handle
Definition: asm_mcore.c:8
@ CS_ARCH_X86
X86 architecture (including x86 & x86-64)
Definition: capstone.h:78
@ CS_MODE_64
64-bit mode (X86, PPC)
Definition: capstone.h:107
size_t csh
Definition: capstone.h:71
CAPSTONE_EXPORT size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t count, cs_insn **insn)
Definition: cs.c:798
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
Definition: cs.c:453
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
Definition: cs_driver.c:93
int main(int argc, char **argv, char **envp)
#define BINARY
static static fork const void static count static fd const char const char static newpath char char argv
Definition: sflib.h:40
unsigned char uint8_t
Definition: sftypes.h:31