Skip to content

Commit

Permalink
Fix #2832 - oob read in r_mem_copyendian
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe authored and radare committed Jun 28, 2015
1 parent 5ca5f14 commit 371501b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libr/core/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@ static int r_core_cmd_subst_i(RCore *core, char *cmd, char *colon) {
/* XXXX:YYYY */
} else {
*ptr2 = '\0';
if (!ptr2[1]) return -1;
r_core_block_size (core, r_num_math (core->num, ptr2+1));
}
}
Expand Down

0 comments on commit 371501b

Please sign in to comment.