Merge pull request #5053 from Sonicadvance1/warkwarkwarkwarkwarkwarkwarkwarkwarkwarkwark

LinuxSyscalls: Fix null pointer dereference in LookupExecutableFileSection
This commit is contained in:
Ryan Houdek authored and GitHub committed 2025-11-17 10:16:59 -08:00
commit b34df334cb
1 file changed
+1 -1
@@ -175,7 +175,7 @@ SyscallHandler::LookupExecutableFileSection(FEXCore::Core::InternalThreadState&
auto lk = FEXCore::GuardSignalDeferringSection<std::shared_lock>(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;
}