From 8f0e0c8eba2454c0f3aa5db456c4d55683ea93b3 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 20 Oct 2022 13:32:59 +0200 Subject: [PATCH] Fix RAX crash --- src/utils/util_rax.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/util_rax.cpp b/src/utils/util_rax.cpp index f586d9de..dcc58345 100644 --- a/src/utils/util_rax.cpp +++ b/src/utils/util_rax.cpp @@ -9,6 +9,9 @@ int main(int argc, char **argv){ return 1; } IPC::sharedPage f(argv[1], 0, false, false); + if (!f.mapped){ + std::cout << "Could not open " << argv[1] << ": does not exist" << std::endl; + } const Util::RelAccX A(f.mapped, false); if (!A.isReady()){ std::cout << "Memory structure " << argv[1] << " is not ready" << std::endl;