mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
Honor baddr=0 in RBin, as it's done for RIO ##bin
This commit is contained in:
parent
d4ce40b516
commit
6f644c307f
@ -327,7 +327,7 @@ R_API bool r_bin_open_io(RBin *bin, RBinFileOptions *opt) {
|
||||
RBuffer *slice = buf;
|
||||
if (!is_debugger && (opt->loadaddr != 0 || opt->sz != r_buf_size (buf))) {
|
||||
slice = r_buf_new_slice (buf, opt->loadaddr, opt->sz);
|
||||
} else if (is_debugger && opt->baseaddr != UT64_MAX && opt->baseaddr != 0) {
|
||||
} else if (is_debugger && opt->baseaddr != UT64_MAX) {
|
||||
slice = r_buf_new_slice (buf, opt->baseaddr, opt->sz);
|
||||
}
|
||||
if (slice != buf) {
|
||||
|
Loading…
Reference in New Issue
Block a user