cs_err

All type of errors encountered by Capstone API. These are values returned by cs_errno()

Values

ValueMeaning
CS_ERR_OK0

< No error: everything was fine

CS_ERR_MEM1

< Out-Of-Memory error: cs_open(), cs_disasm(), cs_disasm_iter()

CS_ERR_ARCH2

< Unsupported architecture: cs_open()

CS_ERR_HANDLE3

< Invalid handle: cs_op_count(), cs_op_index()

CS_ERR_CSH4

< Invalid csh argument: cs_close(), cs_errno(), cs_option()

CS_ERR_MODE5

< Invalid/unsupported mode: cs_open()

CS_ERR_OPTION6

< Invalid/unsupported option: cs_option()

CS_ERR_DETAIL7

< Information is unavailable because detail option is OFF

CS_ERR_MEMSETUP8

< Dynamic memory management uninitialized (see CS_OPT_MEM)

CS_ERR_VERSION9

< Unsupported version (bindings)

CS_ERR_DIET10

< Access irrelevant data in "diet" engine

CS_ERR_SKIPDATA11

< Access irrelevant data for "data" instruction in SKIPDATA mode

CS_ERR_X86_ATT12

< X86 AT&T syntax is unsupported (opt-out at compile time)

CS_ERR_X86_INTEL13

< X86 Intel syntax is unsupported (opt-out at compile time)

CS_ERR_X86_MASM14

< X86 Intel syntax is unsupported (opt-out at compile time)

Meta