aboutsummaryrefslogtreecommitdiff
path: root/Application/EfiDSEFix/src/EfiDSEFix.h
diff options
context:
space:
mode:
authorMatthijs Lavrijsen <mattiwatti@gmail.com>2021-05-25 21:08:07 +0200
committerMatthijs Lavrijsen <mattiwatti@gmail.com>2021-05-25 21:08:07 +0200
commit1cc497f053c9345b78167840f5e4a48951db8268 (patch)
tree0bb37e4c0e31209c167ff53e481610dd1915eb6c /Application/EfiDSEFix/src/EfiDSEFix.h
parentd1d9d858565d53f2b76249554765a7ed10e234c6 (diff)
EfiDSEFix: improve g_CiOptions address validationv1.2.1
- Verify expected lengths of instructions - Verify CipInitialize is in PAGE - Verify g_CiOptions is in either .data or CiPolicy Fixes #31 (regression due to KB5003173 fix)
Diffstat (limited to 'Application/EfiDSEFix/src/EfiDSEFix.h')
-rw-r--r--Application/EfiDSEFix/src/EfiDSEFix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Application/EfiDSEFix/src/EfiDSEFix.h b/Application/EfiDSEFix/src/EfiDSEFix.h
index 0a99540..e7cb109 100644
--- a/Application/EfiDSEFix/src/EfiDSEFix.h
+++ b/Application/EfiDSEFix/src/EfiDSEFix.h
@@ -44,6 +44,14 @@ MapFileSectionView(
_Out_ PSIZE_T ViewSize
);
+BOOLEAN
+AddressIsInSection(
+ _In_ PUCHAR ImageBase,
+ _In_ PUCHAR Address,
+ _In_ PIMAGE_NT_HEADERS NtHeaders,
+ _In_ PCCH SectionName
+ );
+
PVOID
GetProcedureAddress(
_In_ ULONG_PTR DllBase,