Skip to content
Snippets Groups Projects
Commit 0a9072d2 authored by practicalswift's avatar practicalswift
Browse files

Add crash case crash-19-unable-to-encode-mcoperand.c

parent 946d009f
Branches
Tags
No related merge requests found
#include <keystone/keystone.h>
int main(int argc, char **argv) {
int ks_arch = KS_ARCH_ARM, ks_mode = KS_MODE_LITTLE_ENDIAN;
unsigned char assembly[] = {
'C', 'p', 'S', ' ', 'L', ',', 'f', 0x00,
};
ks_engine *ks;
ks_err err = ks_open(ks_arch, ks_mode, &ks);
if (!err) {
size_t count, size;
unsigned char *insn;
ks_asm(ks, (char *)assembly, 0, &insn, &size, &count);
ks_free(insn);
}
ks_close(ks);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment