mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Check USTAR archive validation in KernelVFS()
This commit is contained in:
parent
d651dcbe7f
commit
7ed89bcb4c
@ -57,7 +57,13 @@ EXTERNC NIF void KernelVFS()
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfs::USTAR *ustar = new vfs::USTAR;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user