mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 23:46:36 +00:00
Fix infinite loop in /c
This commit is contained in:
parent
90d66a168b
commit
f91049c8c1
@ -1,4 +1,4 @@
|
||||
/* radare - LGPL - Copyright 2009-2015 - nibble, pancake */
|
||||
/* radare - LGPL - Copyright 2009-2017 - nibble, pancake */
|
||||
|
||||
#include <r_types.h>
|
||||
#include <r_core.h>
|
||||
@ -182,7 +182,7 @@ R_API RList *r_core_asm_strsearch(RCore *core, const char *input, ut64 from, ut6
|
||||
if (everyByte) {
|
||||
idx = matchcount? tidx + 1: idx + 1;
|
||||
} else {
|
||||
idx += len;
|
||||
idx += R_MAX(1, len);
|
||||
}
|
||||
R_FREE (code);
|
||||
matchcount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user