fix: null dereference in internal__Foprep on file exhaustion (#4702)

Co-authored-by: Harshalj2108 <harshalj.2608@gmail.com>
This commit is contained in:
Harshal JoshiandHarshalj2108 authored and GitHub committed 2026-07-13 14:40:46 +03:00
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