[LDR] Initial verifier implementation

This commit is contained in:
Mark Jansen 2018-04-27 22:43:45 +02:00
parent ad8a2edd85
commit 60a1006d0f
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
6 changed files with 719 additions and 40 deletions

View file

@ -20,17 +20,6 @@ ULONG LdrpNormalSnap;
/* FUNCTIONS *****************************************************************/
VOID
NTAPI
AVrfPageHeapDllNotification(IN PLDR_DATA_TABLE_ENTRY LdrEntry)
{
/* Check if page heap dll notification is turned on */
if (!(RtlpDphGlobalFlags & DPH_FLAG_DLL_NOTIFY))
return;
/* We don't support this flag currently */
UNIMPLEMENTED;
}
NTSTATUS
NTAPI
@ -795,10 +784,9 @@ LdrpWalkImportDescriptor(IN LPWSTR DllPath OPTIONAL,
}
/* Check if Application Verifier was enabled */
if (Peb->NtGlobalFlag & FLG_HEAP_ENABLE_TAIL_CHECK)
if (Peb->NtGlobalFlag & FLG_APPLICATION_VERIFIER)
{
/* FIXME */
DPRINT1("We don't support Application Verifier yet!\n");
AVrfDllLoadNotification(LdrEntry);
}
/* Just to be safe */