mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
@b: overrides the anal hints again (#13756)
This commit is contained in:
parent
6921aee8d8
commit
3d6f20bb67
@ -2144,6 +2144,7 @@ static int r_core_cmd_subst_i(RCore *core, char *cmd, char *colon, bool *tmpseek
|
||||
bool oldfixedbits = core->fixedbits;
|
||||
bool cmd_tmpseek = false;
|
||||
ut64 tmpbsz = core->blocksize;
|
||||
int cmd_ignbithints = -1;
|
||||
|
||||
if (!cmd) {
|
||||
r_list_free (tmpenvs);
|
||||
@ -2846,6 +2847,8 @@ repeat_arroba:
|
||||
break;
|
||||
case 'b': // "@b:" // bits
|
||||
is_bits_set = set_tmp_bits (core, r_num_math (core->num, ptr + 2), &tmpbits);
|
||||
cmd_ignbithints = r_config_get_i (core->config, "anal.ignbithints");
|
||||
r_config_set_i (core->config, "anal.ignbithints", 1);
|
||||
break;
|
||||
case 'i': // "@i:"
|
||||
{
|
||||
@ -3158,6 +3161,9 @@ beach:
|
||||
if (tmpseek) {
|
||||
*tmpseek = cmd_tmpseek;
|
||||
}
|
||||
if (cmd_ignbithints != -1) {
|
||||
r_config_set_i (core->config, "anal.ignbithints", cmd_ignbithints);
|
||||
}
|
||||
return rc;
|
||||
fail:
|
||||
rc = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user