Fix regression

This commit is contained in:
alvarofe 2017-08-28 22:48:28 +02:00
parent 9092183a73
commit c652ac8ae6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);