mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-05 04:50:43 +00:00
Fix rabin2 -A for fatmach0s regression
This commit is contained in:
parent
098d0ec1de
commit
3d2dec8852
@ -852,7 +852,9 @@ static RBinObject * r_bin_object_new (RBinFile *binfile, RBinPlugin *plugin, ut6
|
||||
o->baddr = baseaddr;
|
||||
// XXX more checking will be needed here
|
||||
if (bytes && plugin && plugin->load_bytes && (bytes_sz >= sz + offset) ) {
|
||||
o->bin_obj = plugin->load_bytes (bytes+offset, sz-offset, loadaddr, sdb);
|
||||
ut64 bsz = bytes_sz - offset;
|
||||
if (sz<bsz) bsz = sz;
|
||||
o->bin_obj = plugin->load_bytes (bytes+offset, sz, loadaddr, sdb);
|
||||
if (!o->bin_obj) {
|
||||
eprintf("Error in r_bin_object_new: load_bytes failed for %s plugin\n",
|
||||
plugin->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user