Skip to content

Commit 2198521

Browse files
committed
Fix radareorg#2832 - oob read in r_mem_copyendian
1 parent 5ca5f14 commit 2198521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libr/core/cmd.c

+1
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ static int r_core_cmd_subst_i(RCore *core, char *cmd, char *colon) {
15311531
/* XXXX:YYYY */
15321532
} else {
15331533
*ptr2 = '\0';
1534+
if (!ptr2[1]) return -1;
15341535
r_core_block_size (core, r_num_math (core->num, ptr2+1));
15351536
}
15361537
}

0 commit comments

Comments
 (0)