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

Add crash case crash-30-x64-attempt-to-compute-fragment-before-its-predecessor.c

parent 0b074720
No related branches found
No related tags found
No related merge requests found
#include <keystone/keystone.h>
int main(int argc, char **argv) {
int ks_arch = KS_ARCH_X86, ks_mode = KS_MODE_64;
unsigned char assembly[] = {
'I', ';', '.', '=', 'I', '?', ' ', 0x1d, ';', '.',
'I', ';', '.', '=', 'I', '?', ' ', ';', ';', '.',
'=', 'h', 'w', 'w', ';', '1', '5', ':', 'E', ' ',
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.
Finish editing this message first!
Please register or to comment