grpc
third_party
bloaty
third_party
capstone
suite
regress
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
;
7
if
(
cs_open
(
CS_ARCH_X86
,
CS_MODE_64
, &
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
}
cs_disasm
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:822
printf
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
Definition:
cs_driver.c:91
cs_open
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
Definition:
cs.c:474
uint8_t
unsigned char uint8_t
Definition:
stdint-msvc2008.h:78
capstone.h
CS_ARCH_X86
@ CS_ARCH_X86
X86 architecture (including x86 & x86-64)
Definition:
capstone.h:78
csh
size_t csh
Definition:
capstone.h:71
CS_MODE_64
@ CS_MODE_64
64-bit mode (X86, PPC)
Definition:
capstone.h:108
main
int main(int argc, char **argv, char **envp)
Definition:
invalid_read_in_print_operand.c:5
handle
static csh handle
Definition:
test_arm_regression.c:16
BINARY
#define BINARY
Definition:
invalid_read_in_print_operand.c:3
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:07