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