Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ob to oi and omb to ob #21426

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libr/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -4602,7 +4602,7 @@ static bool r_core_bin_file_print(RCore *core, RBinFile *bf, PJ *pj, int mode) {
switch (mode) {
case '*': {
char *n = __filterShell (name);
r_cons_printf ("oba 0x%08"PFMT64x" %s # %d\n", bf->o->boffset, n, bf->id);
r_cons_printf ("oia 0x%08" PFMT64x " %s # %d\n", bf->o->boffset, n, bf->id);
free (n);
break;
}
Expand Down
4 changes: 2 additions & 2 deletions libr/core/cfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
r_core_file_loadlib (r, lib, baddr);
}
}
r_core_cmd0 (r, "obb 0;s entry0");
r_core_cmd0 (r, "oio 0;s entry0");
r_config_set_i (r->config, "bin.at", true);
R_LOG_INFO ("[bin.libs] Linking imports");
RBinImport *imp;
Expand Down Expand Up @@ -831,7 +831,7 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
// RBinObject *obj = r_bin_cur_object (r->bin);
// ut64 nbaddr = obj? obj->baddr: baddr;
r_core_cmd_callf (r, "o %s", macdwarf);
r_core_cmd_call (r, "obm-");
r_core_cmd_call (r, "oim-");
// r_core_cmd_callf (r, "o-."); // causes uaf
}
free (macdwarf);
Expand Down
2 changes: 1 addition & 1 deletion libr/core/cio.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ R_API bool r_core_seek(RCore *core, ut64 addr, bool rb) {
if (bf) {
core->bin->cur = bf;
r_bin_select_bfid (core->bin, bf->id);
// XXX r_core_cmdf (core, "obb %d", bf->id);
// XXX r_core_cmdf (core, "oib %d", bf->id);
} else {
core->bin->cur = NULL;
}
Expand Down