Rizin
unix-like reverse engineering framework and cli tools
invalid_read_in_print_operand.c File Reference
#include <capstone.h>

Go to the source code of this file.

Macros

#define BINARY   "\x3b\x30\x62\x93\x5d\x61\x03\xe8"
 

Functions

int main (int argc, char **argv, char **envp)
 

Macro Definition Documentation

◆ BINARY

#define BINARY   "\x3b\x30\x62\x93\x5d\x61\x03\xe8"

Definition at line 3 of file invalid_read_in_print_operand.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv,
char **  envp 
)

Definition at line 5 of file invalid_read_in_print_operand.c.

5  {
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
#define BINARY
unsigned char uint8_t
Definition: sftypes.h:31

References BINARY, CS_ARCH_X86, cs_disasm(), CS_MODE_64, cs_open(), handle, and printf().