mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Check USTAR archive validation in KernelVFS()
This commit is contained in:
@ -57,7 +57,13 @@ EXTERNC NIF void KernelVFS()
|
||||
}
|
||||
|
||||
vfs::USTAR *ustar = new vfs::USTAR;
|
||||
ustar->ReadArchive(initrdAddress, fs);
|
||||
if (!ustar->TestArchive(initrdAddress))
|
||||
{
|
||||
KPrint("\eFF0000USTAR archive is invalid!");
|
||||
delete ustar;
|
||||
}
|
||||
else
|
||||
ustar->ReadArchive(initrdAddress, fs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user