Skip to content

Commit

Permalink
Fix segfault caused by NULL deref via oom;io
Browse files Browse the repository at this point in the history
  • Loading branch information
fcasal authored and radare committed Feb 22, 2018
1 parent 17c98e1 commit 3274f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
r_config_get_i (r->config, "asm.bits"));
}
}
if (r_config_get_i (r->config, "io.exec")) {
if (desc && r_config_get_i (r->config, "io.exec")) {
desc->flags |= R_IO_EXEC;
}
if (plugin && plugin->name && !strcmp (plugin->name, "dex")) {
Expand Down

0 comments on commit 3274f8a

Please sign in to comment.