1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix disked verify_mountpoint buffer overflow.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-03-28 14:31:23 +02:00
parent bc2f6842d1
commit 8e34889cbd

View file

@ -83,7 +83,7 @@ static bool verify_mountpoint(const char* mountpoint)
if ( !mountpoint[index] || mountpoint[index] == '/' ) if ( !mountpoint[index] || mountpoint[index] == '/' )
return false; return false;
} }
while ( mountpoint[index] != '/' ) while ( mountpoint[index] && mountpoint[index] != '/' )
index++; index++;
while ( mountpoint[index] == '/' ) while ( mountpoint[index] == '/' )
index++; index++;