mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-13 09:11:49 +00:00
Fix CID 1137861
This commit is contained in:
parent
18235021ba
commit
94d01aba57
@ -10,10 +10,13 @@
|
||||
#include "../arch/8051/8051.c"
|
||||
|
||||
static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
|
||||
char *tmp = NULL;
|
||||
|
||||
Op8051 o = do8051struct (buf, len);
|
||||
*op->buf_asm = 0;
|
||||
if (!o.name) return 0; // invalid instruction
|
||||
do8051disasm (o, a->pc, op->buf_asm, sizeof (op->buf_asm));
|
||||
tmp = do8051disasm (o, a->pc, op->buf_asm, sizeof (op->buf_asm));
|
||||
free (tmp);
|
||||
return (op->size = o.length);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user