mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-01 10:38:51 +00:00
ban .byte instructions in rop search
formatting
This commit is contained in:
parent
dafe3c42a2
commit
b1bd248cef
@ -549,7 +549,8 @@ static RList* construct_rop_gadget(RCore *core, ut64 addr, ut8 *buf, int idx, co
|
||||
r_asm_set_pc (core->assembler, addr);
|
||||
if (!r_asm_disassemble (core->assembler, &asmop, buf+idx, 15))
|
||||
goto ret;
|
||||
if (!strncasecmp (asmop.buf_asm, "invalid", strlen("invalid"))) {
|
||||
if (!strncasecmp (asmop.buf_asm, "invalid", strlen("invalid")) ||
|
||||
!strncasecmp (asmop.buf_asm, ".byte", strlen(".byte"))) {
|
||||
valid = R_FALSE;
|
||||
goto ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user