mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-11-17 19:44:36 +01:00
fix: null dereference in internal__Foprep on file exhaustion (#4702)
Co-authored-by: Harshalj2108 <harshalj.2608@gmail.com>
This commit is contained in:
1 parent
4e909d3b8e
commit
d2a7f7e288
1 file changed
+1
@@ -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