From 40e9fb26d23cfb9325ebd24c37b1b89695f8626f Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sat, 4 May 2024 01:27:23 +0200 Subject: [PATCH] Fix segfault in MistUtilRAX --- src/utils/util_rax.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/util_rax.cpp b/src/utils/util_rax.cpp index dcc58345..1f57259d 100644 --- a/src/utils/util_rax.cpp +++ b/src/utils/util_rax.cpp @@ -11,6 +11,7 @@ int main(int argc, char **argv){ IPC::sharedPage f(argv[1], 0, false, false); if (!f.mapped){ std::cout << "Could not open " << argv[1] << ": does not exist" << std::endl; + return 1; } const Util::RelAccX A(f.mapped, false); if (!A.isReady()){