Avoid logging nulls in sceKernelIsStack (#2933)

Games would crash if providing nullptr to start or end.
Also don't need the :# part when logging pointers, as they're automatically formatted.
This commit is contained in:
Stephen Miller 2025-05-14 09:09:23 -05:00 committed by GitHub
parent 26c965cf4a
commit 6d38100a41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,8 +291,7 @@ int PS4_SYSV_ABI sceKernelGetDirectMemoryType(u64 addr, int* directMemoryTypeOut
}
int PS4_SYSV_ABI sceKernelIsStack(void* addr, void** start, void** end) {
LOG_DEBUG(Kernel_Vmm, "called, addr = {:#x}, start = {:#x}, end = {:#x}", fmt::ptr(addr),
fmt::ptr(start), fmt::ptr(end));
LOG_DEBUG(Kernel_Vmm, "called, addr = {}", fmt::ptr(addr));
auto* memory = Core::Memory::Instance();
return memory->IsStack(std::bit_cast<VAddr>(addr), start, end);
}