From 57378457dc5705b75fb6d44575354974a54100e1 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 12 May 2022 17:10:53 +0100 Subject: [PATCH] Treat symbol file paths without slashes as filenames Prevents crashes printing backtrace if this occurs --- app/src/main/cpp/skyline/loader/loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/loader/loader.cpp b/app/src/main/cpp/skyline/loader/loader.cpp index 885cbcba..0c4e02ee 100644 --- a/app/src/main/cpp/skyline/loader/loader.cpp +++ b/app/src/main/cpp/skyline/loader/loader.cpp @@ -93,7 +93,7 @@ namespace skyline::loader { std::unique_ptr demangled{abi::__cxa_demangle(info.dli_sname, nullptr, &length, &status), std::free}; auto extractFilename{[](const char *path) { - const char *filename{}; + const char *filename{path}; for (const char *p{path}; *p; p++) if (*p == '/') filename = p + 1;