From 29473b43cb97ab22ac577f5faa8169b16a051964 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Wed, 22 Oct 2025 19:05:29 +0200 Subject: [PATCH] LinuxSyscalls: Fix null pointer dereference in LookupExecutableFileSection --- .../Tools/LinuxEmulation/LinuxSyscalls/SyscallsSMCTracking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/SyscallsSMCTracking.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/SyscallsSMCTracking.cpp index af2466b49..607a6f8cd 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/SyscallsSMCTracking.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/SyscallsSMCTracking.cpp @@ -175,7 +175,7 @@ SyscallHandler::LookupExecutableFileSection(FEXCore::Core::InternalThreadState& auto lk = FEXCore::GuardSignalDeferringSection(VMATracking.Mutex, &Thread); auto EntryIt = VMATracking.FindVMAEntry(GuestAddr); - if (EntryIt == VMATracking.VMAs.end() || !EntryIt->second.Resource) { + if (EntryIt == VMATracking.VMAs.end() || !EntryIt->second.Resource || !EntryIt->second.Resource->MappedFile) { return std::nullopt; }