mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-08 02:53:29 +00:00
Fix out of band read in argument check for af+
This commit is contained in:
parent
f8d5ba8d3d
commit
92de0ceaf6
@ -216,7 +216,7 @@ R_API bool core_anal_bbs(RCore *core, const char* input) {
|
||||
Sdb *sdb = NULL;
|
||||
ut64 cur = 0;
|
||||
ut64 start = core->offset;
|
||||
ut64 size = r_num_math (core->num, input + 1);
|
||||
ut64 size = input[0] ? r_num_math (core->num, input + 1) : core->blocksize;
|
||||
ut64 b_start = start;
|
||||
RAnalOp *op;
|
||||
RListIter *iter;
|
||||
|
@ -1894,8 +1894,11 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case '+': // "af+"
|
||||
{
|
||||
case '+': { // "af+"
|
||||
if (input[2] != ' ') {
|
||||
eprintf ("Missing arguments\n");
|
||||
return false;
|
||||
}
|
||||
char *ptr = strdup (input + 3);
|
||||
const char *ptr2;
|
||||
int n = r_str_word_set0 (ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user