mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 04:17:25 +00:00
Fix bwdisasm precondition issue
This commit is contained in:
parent
1d3df40c0c
commit
3c57214f3c
@ -385,13 +385,14 @@ R_API RList *r_core_asm_bwdisassemble (RCore *core, ut64 addr, int n, int len) {
|
||||
RAsmOp op;
|
||||
// len = n * 32;
|
||||
// if (n > core->blocksize) n = core->blocksize;
|
||||
ut8 *buf = (ut8 *)malloc(len);
|
||||
|
||||
ut8 *buf;
|
||||
ut64 instrlen = 0, at = 0;
|
||||
ut32 idx = 0, hit_count = 0;
|
||||
int numinstr, asmlen, ii;
|
||||
RAsmCode *c;
|
||||
|
||||
if (len<1) return NULL;
|
||||
buf = (ut8 *)malloc (len);
|
||||
if (hits == NULL || buf == NULL ){
|
||||
if (hits) {
|
||||
r_list_free (hits);
|
||||
|
Loading…
x
Reference in New Issue
Block a user