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

Co-authored-by: Harshalj2108 <harshalj.2608@gmail.com>
This commit is contained in:
Harshal Joshi
2026-07-13 17:10:46 +05:30
committed by GitHub
parent 4e909d3b8e
commit d2a7f7e288

View File

@@ -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