Try more harsh kernel injection testing

This commit is contained in:
vit9696 2019-03-23 14:29:10 +03:00
parent 405c4af0be
commit 43ecade607
7 changed files with 20282 additions and 25490 deletions

View File

@ -442,10 +442,20 @@ PrelinkedReserveKextSize (
IN UINT32 ExecutableSize OPTIONAL
)
{
//
// For new fields.
//
if (OcOverflowAddU32 (InfoPlistSize, 512, &InfoPlistSize)) {
return EFI_INVALID_PARAMETER;
}
//
// For __LINKEDIT segment.
//
if (OcOverflowAddU32 (ExecutableSize, 4096*2, &ExecutableSize)) {
return EFI_INVALID_PARAMETER;
}
InfoPlistSize = PRELINKED_ALIGN (InfoPlistSize);
ExecutableSize = PRELINKED_ALIGN (ExecutableSize);

File diff suppressed because it is too large Load Diff

View File

@ -36,6 +36,8 @@
[Sources]
KernelTest.c
Lilu.c
Vsmc.c
[Packages]
OcSupportPkg/OcSupportPkg.dec

View File

@ -33,6 +33,8 @@
[Sources]
KernelTest.c
Lilu.c
Vsmc.c
[Packages]
OcSupportPkg/OcSupportPkg.dec

12754
Tests/KernelTest/Lilu.c Normal file

File diff suppressed because it is too large Load Diff

7447
Tests/KernelTest/Vsmc.c Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff