mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
Try more harsh kernel injection testing
This commit is contained in:
parent
405c4af0be
commit
43ecade607
@ -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
@ -36,6 +36,8 @@
|
||||
|
||||
[Sources]
|
||||
KernelTest.c
|
||||
Lilu.c
|
||||
Vsmc.c
|
||||
|
||||
[Packages]
|
||||
OcSupportPkg/OcSupportPkg.dec
|
||||
|
||||
@ -33,6 +33,8 @@
|
||||
|
||||
[Sources]
|
||||
KernelTest.c
|
||||
Lilu.c
|
||||
Vsmc.c
|
||||
|
||||
[Packages]
|
||||
OcSupportPkg/OcSupportPkg.dec
|
||||
|
||||
12754
Tests/KernelTest/Lilu.c
Normal file
12754
Tests/KernelTest/Lilu.c
Normal file
File diff suppressed because it is too large
Load Diff
7447
Tests/KernelTest/Vsmc.c
Normal file
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
Loading…
x
Reference in New Issue
Block a user