mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
Fail if the cwd is too long as well.
This commit is contained in:
parent
8e1193feba
commit
0f459f9000
@ -309,6 +309,10 @@ void MetaFileSystem::ThreadEnded(int threadID)
|
||||
|
||||
int MetaFileSystem::ChDir(const std::string &dir)
|
||||
{
|
||||
// Retain the old path and fail if the arg is 1023 bytes or longer.
|
||||
if (dir.size() >= 1023)
|
||||
return SCE_KERNEL_ERROR_NAMETOOLONG;
|
||||
|
||||
int curThread = __KernelGetCurThread();
|
||||
|
||||
std::string of;
|
||||
|
Loading…
Reference in New Issue
Block a user