mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-07-16 04:11:03 +00:00
fix: null dereference in internal__Foprep on file exhaustion (#4702)
Co-authored-by: Harshalj2108 <harshalj.2608@gmail.com>
This commit is contained in:
@@ -73,6 +73,7 @@ OrbisFILE* PS4_SYSV_ABI internal__Foprep(const char* path, const char* mode, Orb
|
||||
s32 fd, s32 s_mode, s32 flag) {
|
||||
if (file == nullptr) {
|
||||
*Kernel::__Error() = POSIX_ENOMEM;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Preserve mode and index
|
||||
|
||||
Reference in New Issue
Block a user