From 5b9e6ea6619eee6283c2cc07de7e5024d0fca555 Mon Sep 17 00:00:00 2001 From: xarkes Date: Sat, 23 Sep 2017 15:37:44 +0200 Subject: [PATCH] Updated r2 version (#213) --- radare2 | 2 +- src/qrcore.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/radare2 b/radare2 index 55362b40..fc6cc69e 160000 --- a/radare2 +++ b/radare2 @@ -1 +1 @@ -Subproject commit 55362b409b98a97b0f9ccf1b50b61510bfa80816 +Subproject commit fc6cc69e9002a8e3cb84d94413b6736822eaa74e diff --git a/src/qrcore.cpp b/src/qrcore.cpp index 75b25429..fc216435 100644 --- a/src/qrcore.cpp +++ b/src/qrcore.cpp @@ -385,7 +385,10 @@ bool IaitoRCore::tryFile(QString path, bool rw) return false; } - bool is_writable = cf->desc->flags & R_IO_WRITE; + bool is_writable = false; + if (cf->core && cf->core->io && cf->core->io->desc) { + is_writable = cf->core->io->desc->flags & R_IO_WRITE; + } // if rbin works, tell entry0, and symbols (main, constructor, ..) //r_core_file_close (this->core, cf);