mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 16:25:30 +00:00
Fix regression
This commit is contained in:
parent
9092183a73
commit
c652ac8ae6
@ -521,7 +521,7 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
|
||||
bool suppress_warning = r_config_get_i (r->config, "file.nowarn");
|
||||
RCoreFile *cf = r_core_file_cur (r);
|
||||
RIODesc *desc = cf ? r_io_desc_get (r->io, cf->fd) : NULL;
|
||||
int va = 0;
|
||||
int va = 1;
|
||||
ut64 laddr = r_config_get_i (r->config, "bin.laddr");
|
||||
RBinFile *binfile = NULL;
|
||||
RBinPlugin *plugin = NULL;
|
||||
|
@ -54,7 +54,7 @@ R_API RIOSection *r_io_section_add(RIO *io, ut64 paddr, ut64 vaddr, ut64 size,
|
||||
ut64 vsize, int flags, const char *name,
|
||||
ut32 bin_id, int fd) {
|
||||
if (!io || !io->sections || !io->sec_ids || !r_io_desc_get (io, fd) ||
|
||||
UT64_ADD_OVFCHK (size, paddr) || UT64_ADD_OVFCHK (size, vaddr) || !vsize) {
|
||||
UT64_ADD_OVFCHK (size, paddr) || UT64_ADD_OVFCHK (size, vaddr) || !vsize) {
|
||||
return NULL;
|
||||
}
|
||||
RIOSection *sec = R_NEW0 (RIOSection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user